[Rails] Re: Conrollers in rails (C in MVC)
Thank you so much Robert Walker. You have given me a lot of insight regarding Controller in MVC. I Thank you again for your time and guidance. Regards, Praveen -- 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 rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: How to differentiate the form_for with respect to routes
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 /signup/employer then my form_for should have the field as > Employer and Contractor for /signup/contractor. > > Need the form_for based on the routes,how to achieve this Try something like: get "/signup/:user_type" => "devise/registrations#new" Then you should see something like this in params: Now sending a URL like: GET http://localhost:3000/signup/employer Will generate a params hash that looks like: {"user_type"=>"employer"} Now whatever you put at the end of the URL will be available inside the params hash: def new if params[user_type] == "employer" # Employer else if params[user_type] == "contractor" # Contractor else # Invalid user_type end end -- 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 rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: manual vs automatic bundler deployment with capistrano
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 bundler: manual vs automatic. > > Which is preferred? I'd choose automatic. Basically just add the require line to your deploy.rb file just like it says there in the docs. -- 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 rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] How to differentiate the form_for with respect to routes
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 field as Employer and Contractor for /signup/contractor. Need the form_for based on the routes,how to achieve this -- 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 rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] RAILS SAVE IDS
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 mallacurriculares_menu_principal_admin_path, :notice => 'MALLA CREATED' end end ** AND IN MY VIEW MALLA I HAVE: <%=form_for @malla , :url => {:action=>"create"} do |f| %> <% for c in @class %> <%=f.radio_button :clase_id, c.id%> <%=c.tip_mall_descrip%> <% end %> <% for n in Level.find(:all) %> <%=radio_button_tag :level, n.id%><%= n.level_number %> <%end%> <% for a in @subject%> <%=check_box_tag "malla[subject_ids][]",a.id,@malla.subject.include?(a)%> <%= a.subject_name%> <%end%> <%=f.submit "SAVE"%> <%end%> My problem is, when I chose the options in my checkbox and radiobutton, I can't get their "ids" in my table ASIGNATURAS_MALLAS_NIVELS, sometimes I get this errors: Please, someone help me, i'm doing my thesis. -- 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 rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Keeping Multiple Development Machines Synchronized with Homeboy
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: https://github.com/preston/homeboy Overview: http://www.prestonlee.com/2013/05/14/keeping-multiple-development-machines-synchronized-with-homeboy/ -- 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 rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/127639dd-1929-4c9a-9946-7f6680daee08%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] How to use selenium combined with cucumber on rails
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 email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: rvm/capistrano
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 :rvm_type, :system > set :rvm_install_with_sudo, true > > before 'deploy:setup', 'rvm:install_rvm' # install RVM > before 'deploy:setup', 'rvm:install_ruby' # install Ruby and create > gemset, OR: > before 'deploy:setup', 'rvm:create_gemset' # only create gemset > > Now that's what you would expect. However, I already had rvm, ruby > installed on my server, and all I wanted installed was the gemset > called online_store. So why was this unable to detect that rvm and > ruby was already installed? > my guess is that you had an older version of RVM and an older patch of Ruby. Whenever you run cap deploy:setup on the above code, it's going to do two things: 1. Update RVM to the current stable version (if the installed version isn't current) 2. Install the latest stable version of Ruby. Note, this is an install, not an update. It will leave older versions in the repository. To RVM, 1.9.3-p0 is different from 1.9.3-p194. If you run the above and 1.9.3-p0 was installed on the server, it will now install 1.9.3-p194 and both will be installed (and available). -- 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 rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/1e4fec25-e31e-41c3-8824-de4ed1483aed%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] manual vs automatic bundler deployment with capistrano
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 preferred? -- 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 rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: capistrano/mod_rails
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 how to “spin up” (start) our application > layer. The precise way this works will vary depending on how you’re > running your application layer. If you’re using mod_rails, for > instance, it will be very different than if you’re using mongrel. > Here, I’ll assume you’re using mongrel. By default, when Capistrano > needs to start your application layer, it will try to execute a script > called “spin”, in the “script” directory of your application, on each > remote server. We’ll need to write that script, and then check it into > the source repository." > > Well I'm using mod_rails/passenger. Do I need to be writing any > scripts as it suggests when using mod_rails? > > No. When you run capify . a default config/deploy.rb file is created. At the bottom of that file is a section of code with the comment "If you are using Passenger mod_rails uncomment this:". remove the comment sign (#) at the beginning of the lines below that starting with namespace and ending with end. That's all you need to do. -- 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 rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/cacf3afe-9831-4004-852f-839bf65f07f2%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: patch levels and ruby
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? Obviously I want different gemsets for different projects to manage with bundler. But patch levels? On May 14, 1:06 pm, John Merlino wrote: > 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 > > before 'deploy:setup', 'rvm:install_rvm' # install RVM > before 'deploy:setup', 'rvm:install_ruby' # install Ruby and create > gemset, OR: > before 'deploy:setup', 'rvm:create_gemset' # only create gemset > > Thats why patch level p0 is there. If I drop the -p0, will it install > the latest rvm with each cap deploy? > > On May 14, 12:53 pm, Walter Lee Davis wrote: > > > > > > > > > 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 the rash of security updates we have seen lately, I would > > always use the latest Ruby you can in your major branch. Make sure your > > tests pass in the app that runs on v.0, and then update to the latest and > > run them again. If you're using rvm, that's likely how you got locked into > > v.0 and v.[whatever] in two different apps. If so, then check to see if you > > have an .rvmrc file in that folder. (Or local equivalent for some other > > ruby-switcher.) > > > Walter > > > > -- > > > 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 rubyonrails-talk@googlegroups.com. > > > To view this discussion on the web > > > visithttps://groups.google.com/d/msgid/rubyonrails-talk/e795aa06-bf20-482b > > > For more options, visithttps://groups.google.com/groups/opt_out. -- 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 rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: capistrano and scm_username and github
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 the way I access my repository through my app is through ssh > keys. The only user name I have with github is the one I use to log > into github to view my repositories. > > There is still an associated user name - you added your ssh key to a github account - what is the name of that account ? 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 emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b4c52b21-2c0f-438f-b979-19b7b8c3600b%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: patch levels and ruby
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 before 'deploy:setup', 'rvm:install_rvm' # install RVM before 'deploy:setup', 'rvm:install_ruby' # install Ruby and create gemset, OR: before 'deploy:setup', 'rvm:create_gemset' # only create gemset Thats why patch level p0 is there. If I drop the -p0, will it install the latest rvm with each cap deploy? On May 14, 12:53 pm, Walter Lee Davis wrote: > 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 the rash of security updates we have seen lately, I would > always use the latest Ruby you can in your major branch. Make sure your tests > pass in the app that runs on v.0, and then update to the latest and run them > again. If you're using rvm, that's likely how you got locked into v.0 and > v.[whatever] in two different apps. If so, then check to see if you have an > .rvmrc file in that folder. (Or local equivalent for some other > ruby-switcher.) > > Walter > > > > > > > > > > > -- > > 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 rubyonrails-talk@googlegroups.com. > > To view this discussion on the web > > visithttps://groups.google.com/d/msgid/rubyonrails-talk/e795aa06-bf20-482b > > For more options, visithttps://groups.google.com/groups/opt_out. -- 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 rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: capistrano and scm_username and github
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 through my app is through ssh > keys. The only user name I have with github is the one I use to log > into github to view my repositories. > > So I'm not sure if scm_username is needed and what username does it > want. If I'm not mistaken, they are not talking about your GitHub username (or wherever you're hosing your repository). They are talking about the Git username that you set with git config. $ git config --list user.name=Robert Walker user.email=n...@example.com ... ... This information will show up in git log indicating the author of the changes at the time they were committed. It has nothing to do with authentication for accessing the Git repository. That, as you mentioned, is handled separately from :scm_username thorough something like ssh as you mentioned. -- 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 rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Rails] patch levels and ruby
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 the rash of security updates we have seen lately, I would always use the latest Ruby you can in your major branch. Make sure your tests pass in the app that runs on v.0, and then update to the latest and run them again. If you're using rvm, that's likely how you got locked into v.0 and v.[whatever] in two different apps. If so, then check to see if you have an .rvmrc file in that folder. (Or local equivalent for some other ruby-switcher.) Walter > > -- > 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 rubyonrails-talk@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/e795aa06-bf20-482b-9443-1df67fa1a1bb%40googlegroups.com?hl=en-US. > For more options, visit https://groups.google.com/groups/opt_out. > > -- 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 rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Rails] patch levels and ruby
On Tue, May 14, 2013 at 9:37 AM, 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? Given there are known security issues in -p0 and -p392, why aren't you updating all your projects to the latest version? -- Hassan Schroeder hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter: @hassan -- 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 rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: patch levels and ruby
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 Rubies? RVM and rbenv both have mechanisms for setting per-project Ruby versions. Do you have a hidden file inside the directly you cd into that specifies what version to use for that project? -- 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 rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] patch levels and ruby
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 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 rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e795aa06-bf20-482b-9443-1df67fa1a1bb%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Rails] My first working Rails site - Bargain Stock Funds
On 14 May 2013 16:59, Jason Hsu, Android developer 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 > stock ETFs and mutual funds from the value investing point of view. There > are detailed profiles of funds, there is a master file showing all data for > all funds in CSV format, there is a list of the cheapest stock ETFs, and > there is a list showing the valuations of each Vanguard fund. Features in > the works include the ability to search for funds by various parameters and > listings of the cheapest mutual funds in each style box category > (large/medium/small, value/blend/growth). Excellent. One minor issue, some of the html is invalid (in minor ways as far as I can see). For example http://validator.w3.org/check?uri=http%3A%2F%2Fwww.bargainstockfunds.com%2Ffundsview&charset=%28detect+automatically%29&doctype=Inline&group=0 Good luck Colin -- 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 rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] My first working Rails site - Bargain Stock Funds
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 detailed profiles of funds, there is a master file showing all data for all funds in CSV format, there is a list of the cheapest stock ETFs, and there is a list showing the valuations of each Vanguard fund. Features in the works include the ability to search for funds by various parameters and listings of the cheapest mutual funds in each style box category (large/medium/small, value/blend/growth). The source code for my Rails site is at https://github.com/jhsu802701/bsf/. The source code for the web-scraping script that acquires the fund data is at https://github.com/jhsu802701/bsf-python . (I tried Ruby initially, but my script was too slow. I'm not sure if switching to Python made it faster, or if other improvements made my script faster. I plan to try Ruby/JRuby when I revamp my Doppler Value Investing project, which profiles individual stocks in terms of net liquidity and free cash flow. The web site is http://www.dopplervalueinevsting.com .) I'm using a Postgres database to store the data on the stock funds. I chose Postgres because it's far more robust and can handle far more web traffic than the default SQLite3 database. I have made sure to use rspec tests and to implement these tests with Guard and Spork. It allows me to implement Joel Spolsky's principle of testing early and often. (Thanks, Rails!) I understand that history has not been kind to Rails developers who neglect the testing process, and I had to make sure that I am NEVER tempted to skip this step in the name of "meeting a deadline." My deployment process is configured to AUTOMATICALLY update the config/database.yml file. (Saving the password in plaintext on GitHub is not a viable option.) I had to make sure that I can update the production web site with ZERO downtime. -- 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 rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ccce695b-36fc-4a38-b465-66ee586d0e6c%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Rails] Fetching gem metadata from http://rubygems.org/.Unfortunately, a fatal error has occurred. Please se
thanks Dheeraj Kumar *kanna(9742665400)*... On Tue, Apr 23, 2013 at 6:31 PM, Dheeraj Kumar wrote: > 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 6:01 PM, Colin Law wrote: > > On 23 April 2013 13:22, kanna wrote: > > Hi guys > > when i'm doing bundle install i got this type of error > > whats this? > > please help me. > > rajesh@rajesh:~/workspace/Cybermedia_Test$ bundle install > Fetching gem metadata from http://rubygems.org/.Unfortunately, a fatal > error > has occurred. Please see the Bundler > troubleshooting documentation at http://bit.ly/bundler-issues. Thanks! > > > Can you access rubygems.org from your browser ok? > > If you can then try running bundle again in a few hours in case it is > a temporary network or server problem. > > Colin > > -- > 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 rubyonrails-talk@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- > 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 rubyonrails-talk@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- 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 rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] capistrano/mod_rails
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 will vary depending on how you’re running your application layer. If you’re using mod_rails, for instance, it will be very different than if you’re using mongrel. Here, I’ll assume you’re using mongrel. By default, when Capistrano needs to start your application layer, it will try to execute a script called “spin”, in the “script” directory of your application, on each remote server. We’ll need to write that script, and then check it into the source repository." Well I'm using mod_rails/passenger. Do I need to be writing any scripts as it suggests when using mod_rails? -- 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 rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] rvm/capistrano
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', 'rvm:install_rvm' # install RVM before 'deploy:setup', 'rvm:install_ruby' # install Ruby and create gemset, OR: before 'deploy:setup', 'rvm:create_gemset' # only create gemset Now that's what you would expect. However, I already had rvm, ruby installed on my server, and all I wanted installed was the gemset called online_store. So why was this unable to detect that rvm and ruby was already installed? -- 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 rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: Conrollers in rails (C in MVC)
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 the seven "RESTful" actions (index, new, show, edit, create, update & destroy) for each model object. The actions map to HTTP requests, and depend on the HTTP method used (i.e. GET, POST, DELETE, PUT/PATCH). For example sending a GET request to http://example.com/articles would map to the "index" action of articles_contolller.rb. The "index" action retrieves a list of article model instances and passes the list to the app/views/index.html.erb view template for rending into a web browser. In a RESTful application you want to think about breaking down your application's model into "resources" Sometimes a "resource" is basically a model object, such as Article. Often a resource is more abstract and can be treated independently from actual model classes with their own MVC. One example of this would be a user session. There may be no model object representing the concept of a session, but there could still be an MVC for managing session in a RESTful style. In other words you would have an entry in config/routes.rb for a sessions resource with a sessions_controller.rb file with at least some of the standard RESTful actions. Maybe a "create" action for logging in users by creating a session for them and a "destroy" action for logging users out. There may be no actual persistent model representing a session, but rather the model may be nothing more than inserting the id of the user model into the session hash. There are also many other opportunities for resources that don't map directly to models or views. Or you may choose to use a separate resource (and controller) for managing AJAX requests, or advanced search features. The possibilities are endless and depend greatly on the needs of your application. If you have not done so already, begin with the Rails guides: http://guides.rubyonrails.org/index.html Once you have a general understanding of Rails then jump into on of the excellent tutorials such as: http://ruby.railstutorial.org -- 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 rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Permanent | RoR Engineers | £65k + bonus + Bens | UK based (Oxfordshire)
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 "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 rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/2ad432e2-c7a2-432c-89db-ab33b2ec1fe6%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: Why joins queries make result readonly?
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 actually no column foreign columns on default join. -- 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 rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a9d10d28-205d-4f7b-ab3b-3b02cfbd2c19%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: Why joins queries make result readonly?
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 > => [# client_id: 1, completion_status: "finished", created_at: "2013-05-13 > 20:48:19", updated_at: "2013-05-14 00:36:38", price: > #>] > > I see no additional columns but Order.by_executor(1).first.readonly? is > true. Is that necessary? > > One other thing: inspect only ever shows columns from the model table - If you change the select clause to orders.*, order_executors.specialist_id then you'd get the same inspect output but your object would respond to specialist_id 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 emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/835e3b89-706e-4221-b9dc-80d691731298%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Rails] Re: Why joins queries make result readonly?
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 emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a62ced55-b96a-47e3-a28a-a28170c20210%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Rails] Re: Why joins queries make result readonly?
On 14 May 2013 11:12, Frederick Cheung 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 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 Order < ActiveRecord::Base >> has_and_belongs_to_many :executors, class_name: 'Specialist', >> join_table: 'order_executors' >> scope :by_executor, ->(executor_id) { >> joins(:executors).where(specialists: {id: executor_id} ) } >> end >> >> and make query Order.by_executor(1) so that I get: >> >> 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 >> => [#> client_id: 1, completion_status: "finished", created_at: "2013-05-13 >> 20:48:19", updated_at: "2013-05-14 00:36:38", price: >> #>] >> >> I see no additional columns but Order.by_executor(1).first.readonly? is >> true. Is that necessary? >> >> p.s. Yes I know that I can set readonly(false) or explicitly specify >> select clause - so that records won't become readonly. But I want to >> understand why this blocking behavior is necessary (if it is still true) and >> what damage will be possible without readonly mark? Also I don't understand, >> how can I shot myself if I explicitly set readonly(false). > > > This might be a hangover from the past - I think active record didn't use to > default to orders.* - the default select clause was select *. > > The danger is only if you do select columns from the other tables. This can > either prevent saves (because your object has an attribute that doesn't > exist for the model) or mask existing data, eg if both of the joined tables > have a client_id column and you do select * then the activerecord object > will have a single client_id attribute that has only one of those values. Should the OP be using includes rather than joins? Colin -- 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 rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: Why joins queries make result readonly?
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 > fields, but actually I don't see that fields. For example I write model > class Order < ActiveRecord::Base > has_and_belongs_to_many :executors, class_name: 'Specialist', > join_table: 'order_executors' > scope :by_executor, ->(executor_id) { > joins(:executors).where(specialists: {id: executor_id} ) } > end > > and make query Order.by_executor(1) so that I get: > > 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 > => [# client_id: 1, completion_status: "finished", created_at: "2013-05-13 > 20:48:19", updated_at: "2013-05-14 00:36:38", price: > #>] > > I see no additional columns but Order.by_executor(1).first.readonly? is > true. Is that necessary? > > p.s. Yes I know that I can set readonly(false) or explicitly specify > select clause - so that records won't become readonly. But I want to > understand why this blocking behavior is necessary (if it is still true) > and what damage will be possible without readonly mark? Also I don't > understand, how can I shot myself if I explicitly set readonly(false). > This might be a hangover from the past - I think active record didn't use to default to orders.* - the default select clause was select *. The danger is only if you do select columns from the other tables. This can either prevent saves (because your object has an attribute that doesn't exist for the model) or mask existing data, eg if both of the joined tables have a client_id column and you do select * then the activerecord object will have a single client_id attribute that has only one of those values. 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 emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/fe2f2242-7c54-470e-9985-3e7a82bbd07b%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Why joins queries make result readonly?
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 Order < ActiveRecord::Base has_and_belongs_to_many :executors, class_name: 'Specialist', join_table: 'order_executors' scope :by_executor, ->(executor_id) { joins(:executors).where(specialists: {id: executor_id} ) } end and make query Order.by_executor(1) so that I get: 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 => [#>] I see no additional columns but Order.by_executor(1).first.readonly? is true. Is that necessary? p.s. Yes I know that I can set readonly(false) or explicitly specify select clause - so that records won't become readonly. But I want to understand why this blocking behavior is necessary (if it is still true) and what damage will be possible without readonly mark? Also I don't understand, how can I shot myself if I explicitly set readonly(false). -- 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 rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8a6c9dd6-526f-4b49-b52a-d96f7edb431e%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Conrollers in rails (C in MVC)
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 rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails]
-- 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 rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: rails 3.2.13 model generator does not work in a mountable engine
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 mountable > engine, and `cd engine_name` > > I tried `rails g controller controller_name`, it works fine, but not > `rails g model model_name`, after I type this command it shows nothing. > > anyone meet this? > -- 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 rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b15a9475-7436-4a14-9c8f-80069ebf43c9%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: RUBY ON RAILS GET IDS TO MY DATABASE
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", "subjects_ids"=>["3", "4", "5"]}, "level"=>"3", "commit"=>"GUARDAR"} The parameters looks good, and my controller is: def new @asignatura = Asignatura.find(:all) @clase = Clase.find(:all) @nivel = Nivel.find(:all) @malla = Malla.new end def create @malla = Malla.new(params[:malla]) @subject = @malla.subjects(params[:subject_ids]) @level = @malla.levels(params[:level]) if @malla.save and @subject.save and @level.save redirect_to mallacurriculares_menu_principal_admin_path, :notice => 'MALLA created' end end In my controller i want to save the "ids" that i chose in the view form to my model: subject_malla_level. And i dont know how to do it, please help 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 and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Rails] Re: Re: RUBY ON RAILS GET IDS TO MY DATABASE
On 14 May 2013 09:13, cristhian Campoverde 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 the previous message when replying as this is actually a mailing list not a forum, though you may be accessing it using a forum-like interface. My reply was: You need to show us the exact error and the line of code it is failing on (with the lines around it). First, though, have a look at the Rails Guide on Debugging which will show you techniques that you can use to debug your code. Colin > > -- > 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 rubyonrails-talk+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > -- 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 rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: Re: RUBY ON RAILS GET IDS TO MY DATABASE
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 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 rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Rails] Re: RUBY ON RAILS GET IDS TO MY DATABASE
On 14 May 2013 08:03, cristhian Campoverde 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 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 rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Rails] Instagram Redirect error
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 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 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 > (mailto:rubyonrails-talk+unsubscr...@googlegroups.com). > To post to this group, send email to rubyonrails-talk@googlegroups.com > (mailto:rubyonrails-talk@googlegroups.com). > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/4ced0c5c-859c-4754-9e26-306834bded04%40googlegroups.com?hl=en-US. > For more options, visit https://groups.google.com/groups/opt_out. > > -- 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 rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Instagram Redirect error
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 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 rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4ced0c5c-859c-4754-9e26-306834bded04%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] rake precompile:assets throwing error
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 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 rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/c025224a-76eb-4d1b-82bd-2c0c4f556485%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: RUBY ON RAILS GET IDS TO MY DATABASE
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 and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.