Re: [Rails] RAILS GET IDS

2013-05-14 Thread Colin Law
On 13 May 2013 22:04, cristhian Campoverde li...@ruby-forum.com wrote: I don't know how to solve something about a project I'm doing in Ruby on Rails. [snip] **cant convert symbol into integer or **undefined method `stringify_keys' Please, someone help me, i'm doing my thesis. You need to

Re: [Rails] RUBY ON RAILS GET IDS TO MY DATABASE

2013-05-14 Thread Colin Law
On 14 May 2013 06:19, cristhian Campoverde li...@ruby-forum.com wrote: I want to save the IDS of my 3 models to my table DETAILS between these, my BD is Mysql. Why have you posted this again? I have replied to your first posting. Colin -- You received this message because you are subscribed

[Rails] Re: RUBY ON RAILS GET IDS TO MY DATABASE

2013-05-14 Thread cristhian Campoverde
Hi Colin, really ?? sorry, I tried to simplificate my question...! Please, if you know how to solve, tell me men. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group

[Rails] rake precompile:assets throwing error

2013-05-14 Thread sith
While running rake precompile:assets i'm getting the following error This is the error message: rake assets:precompile:all RAILS_ENV=production rake aborted! undefined local variable or method `establish_connection' for ActiveRecord::Base:Class Please help -- You received this message

[Rails] Instagram Redirect error

2013-05-14 Thread Maddy
Hi Folks, In just integrate instagram to my app. I got an error while redirect from instagram. {code: 400, error_type: OAuthException, error_message: Redirect URI does not match registered redirect URI} Please advise. Thank you -- You received this message because you are

Re: [Rails] Instagram Redirect error

2013-05-14 Thread Dheeraj Kumar
It looks like you're passing a redirect URL to the API while authenticating. You should either not include it, or make sure it's the same as the one you provide in Instagram's app settings. -- Dheeraj Kumar On Tuesday 14 May 2013 at 1:07 PM, Maddy wrote: Hi Folks, In just integrate

Re: [Rails] Re: RUBY ON RAILS GET IDS TO MY DATABASE

2013-05-14 Thread Colin Law
On 14 May 2013 08:03, cristhian Campoverde li...@ruby-forum.com wrote: Hi Colin, really ?? sorry, I tried to simplificate my question...! Please, if you know how to solve, tell me men. See my reply to your initial posting. Colin -- You received this message because you are subscribed to the

[Rails] Re: Re: RUBY ON RAILS GET IDS TO MY DATABASE

2013-05-14 Thread cristhian Campoverde
The trouble Colin is I accidentally deleted my first post, it was the first time i signed up, so i was trying to know how the forum works. Please man help me with that, really I need to solve it for my thesis. -- Posted via http://www.ruby-forum.com/. -- You received this message because you

Re: [Rails] Re: Re: RUBY ON RAILS GET IDS TO MY DATABASE

2013-05-14 Thread Colin Law
On 14 May 2013 09:13, cristhian Campoverde li...@ruby-forum.com wrote: The trouble Colin is I accidentally deleted my first post, it was the first time i signed up, so i was trying to know how the forum works. Please man help me with that, really I need to solve it for my thesis. Please quote

[Rails] Re: RUBY ON RAILS GET IDS TO MY DATABASE

2013-05-14 Thread cristhian Campoverde
Thanks for you replying Colin: Look, this's my message of error: NoMethodError in MallacurricularesController#create undefined method `save' for []:ActiveRecord::Relation Parameters: {utf8=✓, authenticity_token=CEX4yZeFmrSOspseMm2/d8rzPzu/3FYI2w8d7XZ1Ji0=, malla={clase_id=1,

[Rails] Re: rails 3.2.13 model generator does not work in a mountable engine

2013-05-14 Thread Geoffrey Roguelon
Hi, I've generated a mountable engine with Rails 3.2.13 and i've none problems to generate a model after a controller... Have you tested again ? Best regards. Le mardi 14 mai 2013 05:29:15 UTC+2, ma...@secondbureau.com a écrit : I use `rails plugin new engine_name --mountable` to generate a

[Rails]

2013-05-14 Thread Dante Pineda
-- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to

[Rails] Conrollers in rails (C in MVC)

2013-05-14 Thread Praveen BK
When should I create a new controller in a rails application? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to

[Rails] Why joins queries make result readonly?

2013-05-14 Thread Илья Воронцов
Are there any rationalies to make queries obtained by joining scope to be readonly? I read some old posts (pre-rails3) that joins adds additional columns to record so that ActiveRecord doesn't know how to update that fields, but actually I don't see that fields. For example I write model class

[Rails] Re: Why joins queries make result readonly?

2013-05-14 Thread Frederick Cheung
On Tuesday, May 14, 2013 10:26:56 AM UTC+1, Илья Воронцов wrote: Are there any rationalies to make queries obtained by joining scope to be readonly? I read some old posts (pre-rails3) that joins adds additional columns to record so that ActiveRecord doesn't know how to update that

Re: [Rails] Re: Why joins queries make result readonly?

2013-05-14 Thread Colin Law
On 14 May 2013 11:12, Frederick Cheung frederick.che...@gmail.com wrote: On Tuesday, May 14, 2013 10:26:56 AM UTC+1, Илья Воронцов wrote: Are there any rationalies to make queries obtained by joining scope to be readonly? I read some old posts (pre-rails3) that joins adds additional columns

Re: [Rails] Re: Why joins queries make result readonly?

2013-05-14 Thread Frederick Cheung
On Tuesday, May 14, 2013 11:14:56 AM UTC+1, Colin Law wrote: Should the OP be using includes rather than joins? Hard to tell. Fred -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving

[Rails] Re: Why joins queries make result readonly?

2013-05-14 Thread Frederick Cheung
On Tuesday, May 14, 2013 10:26:56 AM UTC+1, Илья Воронцов wrote: Order Load (2.0ms) SELECT orders.* FROM orders INNER JOIN order_executors ON order_executors.order_id = orders.id INNER JOIN specialists ON specialists.id = order_executors.specialist_id WHERE specialists.id = 1 = [#Order

[Rails] Re: Why joins queries make result readonly?

2013-05-14 Thread Илья Воронцов
Thank you, Frederik. I think in my case joins is better because I don't want any orders except those having exact executor (with includes I'll get lots of orders without any executor at all, if I understand its behavior right) I tried to get specialist_id and got nothing. So it looks, there is

[Rails] Permanent | RoR Engineers | £65k + bonus + Bens | UK based (Oxfordshire)

2013-05-14 Thread crisps85
Please let me know the best number to contact you if you would like the know more. Email your CV to christine.w...@squareoneresources.com This position will be based in the UK so there will be NO remote working. -- You received this message because you are subscribed to the Google Groups

[Rails] Re: Conrollers in rails (C in MVC)

2013-05-14 Thread Robert Walker
Praveen BK wrote in post #1108907: When should I create a new controller in a rails application? Basically the same as in any other MVC based system. When you need to manage user actions and communicate information between views and models. The most common pattern is to have a controller with

[Rails] rvm/capistrano

2013-05-14 Thread John Merlino
When I ran cap deploy:setup, the following actually installed rvm, ruby and the online_store gemset on my staging server: set :rvm_ruby_string, 'ruby-1.9.3-p0@online_store' set :rvm_autolibs_flag, read-only set :rvm_type, :system set :rvm_install_with_sudo, true before 'deploy:setup',

[Rails] capistrano/mod_rails

2013-05-14 Thread John Merlino
I was following these instructions for capistrano deployment: https://github.com/capistrano/capistrano/wiki/2.x-From-The-Beginning Under the section Application Layer Initialization, it says: We need to tell Capistrano how to “spin up” (start) our application layer. The precise way this works

Re: [Rails] Fetching gem metadata from http://rubygems.org/.Unfortunately, a fatal error has occurred. Please se

2013-05-14 Thread rajesh kanna
thanks Dheeraj Kumar *kanna(9742665400)*... On Tue, Apr 23, 2013 at 6:31 PM, Dheeraj Kumar a.dheeraj.ku...@gmail.comwrote: The latest bundler is 1.3.5. Try updating it using `gem update bundler` and then running the bundle command. -- Dheeraj Kumar On Tuesday 23 April 2013 at

[Rails] My first working Rails site - Bargain Stock Funds

2013-05-14 Thread Jason Hsu, Android developer
Thank you for your help and encouragement. I am pleased to report that my first Ruby on Rails site is now operational. Bargain Stock Funds ( http://www.bargainstockfunds.com) now displays profiles of over 10,000 stock ETFs and mutual funds from the value investing point of view. There are

Re: [Rails] My first working Rails site - Bargain Stock Funds

2013-05-14 Thread Colin Law
On 14 May 2013 16:59, Jason Hsu, Android developer jhsu802...@gmail.com wrote: Thank you for your help and encouragement. I am pleased to report that my first Ruby on Rails site is now operational. Bargain Stock Funds (http://www.bargainstockfunds.com) now displays profiles of over 10,000

[Rails] patch levels and ruby

2013-05-14 Thread John Merlino
How do you know which patch level to use for ruby? I have one project that uses ruby-1.9.3-p0. When I cd into another project, it says: ruby-1.9.3-p392 is not installed. So which to use: ruby-1.9.3-p0 or ruby-1.9.3-p392? -- You received this message because you are subscribed to the Google

[Rails] Re: patch levels and ruby

2013-05-14 Thread Robert Walker
John Merlino wrote in post #1108958: How do you know which patch level to use for ruby? I have one project that uses ruby-1.9.3-p0. When I cd into another project, it says: ruby-1.9.3-p392 is not installed. So which to use: ruby-1.9.3-p0 or ruby-1.9.3-p392? What are you using to manage your

Re: [Rails] patch levels and ruby

2013-05-14 Thread Hassan Schroeder
On Tue, May 14, 2013 at 9:37 AM, John Merlino stoici...@aol.com wrote: How do you know which patch level to use for ruby? I have one project that uses ruby-1.9.3-p0. When I cd into another project, it says: ruby-1.9.3-p392 is not installed. So which to use: ruby-1.9.3-p0 or ruby-1.9.3-p392?

Re: [Rails] patch levels and ruby

2013-05-14 Thread Walter Lee Davis
On May 14, 2013, at 12:37 PM, John Merlino wrote: How do you know which patch level to use for ruby? I have one project that uses ruby-1.9.3-p0. When I cd into another project, it says: ruby-1.9.3-p392 is not installed. So which to use: ruby-1.9.3-p0 or ruby-1.9.3-p392? Personally, with

[Rails] Re: capistrano and scm_username and github

2013-05-14 Thread Robert Walker
John Merlino wrote in post #1108530: In the capistrano wiki, it contains this line: set :scm_username, foo. If you access your source repository with a different user name than you are logged into your local machine with, Capistrano needs to know. Actually the way I access my repository

[Rails] Re: patch levels and ruby

2013-05-14 Thread John Merlino
I'm using capistrano. I added this to the recipe: set :rvm_ruby_string, 'ruby-1.9.3-p0@online_store' # use the same ruby as used locally for deployment set :rvm_autolibs_flag, read-only# more info: rvm help autolibs set :rvm_type, :system set :rvm_install_with_sudo, true

[Rails] Re: capistrano and scm_username and github

2013-05-14 Thread Frederick Cheung
On Friday, May 10, 2013 4:36:18 PM UTC+1, John Merlino wrote: In the capistrano wiki, it contains this line: set :scm_username, “foo”. If you access your source repository with a different user name than you are logged into your local machine with, Capistrano needs to know. Actually

[Rails] Re: patch levels and ruby

2013-05-14 Thread John Merlino
My /usr/local/rvm/gems looks like this (on ubuntu server): cache ruby-1.9.3-p0@globalruby-1.9.3-p194 ruby-1.9.3-p194@TrackingSystem ruby-1.9.3-p0 ruby-1.9.3-p0@online_store ruby-1.9.3-p194@global ruby-1.9.3-p392@TrackingSystem Is this normal to be using so many patch levels?

[Rails] Re: capistrano/mod_rails

2013-05-14 Thread mike
On Tuesday, May 14, 2013 11:27:55 AM UTC-4, John Merlino wrote: I was following these instructions for capistrano deployment: https://github.com/capistrano/capistrano/wiki/2.x-From-The-Beginning Under the section Application Layer Initialization, it says: We need to tell Capistrano

[Rails] manual vs automatic bundler deployment with capistrano

2013-05-14 Thread John Merlino
I assume this is the most up to date documentation for running bundler install when deploying a rails application with capistrano: http://gembundler.com/v1.3/deploying.html In the documentation, it offers two methods for deploying capistrano with bundler: manual vs automatic. Which is

[Rails] Re: rvm/capistrano

2013-05-14 Thread mike
On Tuesday, May 14, 2013 10:56:10 AM UTC-4, John Merlino wrote: When I ran cap deploy:setup, the following actually installed rvm, ruby and the online_store gemset on my staging server: set :rvm_ruby_string, 'ruby-1.9.3-p0@online_store' set :rvm_autolibs_flag, read-only set

[Rails] How to use selenium combined with cucumber on rails

2013-05-14 Thread Nike Mike
How to combine cucumber features with selenium that runs on rails 3.2 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an

[Rails] Keeping Multiple Development Machines Synchronized with Homeboy

2013-05-14 Thread Preston Lee
I just released some bash scripts for keeping my numerous Ruby/Rails development machines synchronized sanely. If you have a desktop, laptop, cloud server etc. you bounce between and use RVM, brew and whatnot, you might find them useful! Pull requests appreciated. :) GitHub:

[Rails] RAILS SAVE IDS

2013-05-14 Thread cristhian Campoverde
I think, my method create is wrong in controller MALLA I want to save the ids selected in the view malla from the controller MALLA. def create params[:malla][:level][:subject_ids] @malla = Malla.new(params[:subject_ids][:level][:malla]) if @malla.save redirect_to

[Rails] How to differentiate the form_for with respect to routes

2013-05-14 Thread Nike Mike
I have my devise routes as get /signup/employer = devise/registrations#new ,:as=:useremp get /signup/contractor = devise/registrations#new,:as= :usercontract Both routes points to controller - registrations and action - new.When i hit the URL /signup/employer then my form_for should have the

[Rails] Re: manual vs automatic bundler deployment with capistrano

2013-05-14 Thread Robert Walker
John Merlino wrote in post #1108980: I assume this is the most up to date documentation for running bundler install when deploying a rails application with capistrano: http://gembundler.com/v1.3/deploying.html In the documentation, it offers two methods for deploying capistrano with

[Rails] Re: How to differentiate the form_for with respect to routes

2013-05-14 Thread Robert Walker
Nike Mike wrote in post #1109024: I have my devise routes as get /signup/employer = devise/registrations#new ,:as=:useremp get /signup/contractor = devise/registrations#new,:as= :usercontract Both routes points to controller - registrations and action - new.When i hit the URL