[Rails] Re: Gentoo for Rails?

2013-02-02 Thread David Busby
I'm a big fan of Rails on Gentoo - RoR 3.x is working great here - http://praxis.edoceo.com/howto/rails On Wednesday, July 7, 2010 11:58:12 AM UTC-7, Sal wrote: I'm curious to know why Gentoo is a very commonly used distro for the Rails community. Any reasons for this? -- You received

[Rails] Basic routing question

2013-02-02 Thread Dave Castellano
Hi, I'm learning about routing and trying to solve the problem below. Using update_scope_path in the view is routing to users/show rather than users/update_scope, with update_scope becoming the user id. ( The goal is to change session[:question_scope] to vip when the user clicks the button in

Re: [Rails] Basic routing question

2013-02-02 Thread Johnneylee Rollins
I would suggest doing this. resources :users scope '/users' do put 'update_scope', to: 'users#update_scope', as: :update_scope end That might work. What I'd honestly consider is making a scope controller and using the update action. If you don't need the others, then your routes will look like

[Rails] Re: Basic routing question

2013-02-02 Thread Dave Castellano
So I can't create an action in any controller that sets the session variable and then call it through the route? Can you tell me why it is going to users /show instead of users/update_scope? I am trying to understand how this works as well as get it working... Thanks! -- Posted via

[Rails] rake db:migrate problem

2013-02-02 Thread Haris Hajdarevic
mini@mini:~/Sites/music_library$ rake db:migrate rake aborted! couldn't parse YAML at line 28 column 6 /home/mini/my_gems/gems/railties-3.2.9/lib/rails/application/configuration.rb:115:in `database_configuration' /home/mini/my_gems/gems/activerecord-3.2.9/lib/active_record/railtie.rb:78:in `block

Re: [Rails] Basic routing question

2013-02-02 Thread Hassan Schroeder
On Sat, Feb 2, 2013 at 6:35 AM, Dave Castellano li...@ruby-forum.com wrote: Using update_scope_path in the view is routing to users/show rather than users/update_scope, with update_scope becoming the user id. ( The goal is to change session[:question_scope] to vip when the user clicks the

Re: [Rails] rake db:migrate problem

2013-02-02 Thread Colin Law
On 2 February 2013 16:03, Haris Hajdarevic li...@ruby-forum.com wrote: mini@mini:~/Sites/music_library$ rake db:migrate rake aborted! couldn't parse YAML at line 28 column 6 /home/mini/my_gems/gems/railties-3.2.9/lib/rails/application/configuration.rb:115:in `database_configuration' Possibly

[Rails] Re: Basic routing question

2013-02-02 Thread Dave Castellano
Thank you! -- 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

[Rails] How to set css styles with variables in rails if certain item is selected?

2013-02-02 Thread Juan Mercedes
I'm doing the Ryan Bates Sortable Table Columns screencast If the item is a table and I want to a style if the item is selected how can I do it? Attachments: http://www.ruby-forum.com/attachment/8101/sortable.txt -- Posted via http://www.ruby-forum.com/. -- You received this message because

[Rails] Create Ruby on Rails project from existing HTML pages mysql schema

2013-02-02 Thread jatin . jello
Hello Rails experts... I have an interesting problem...I'm sure there are many solutions to this but I can't seem to figure it out - I have an existing set of HTML5/CSS3/jquery/javascript pages - no logic - just the UI with content, etc. And I also have the schema for mysql project. I want to

Re: [Rails] Create Ruby on Rails project from existing HTML pages mysql schema

2013-02-02 Thread Walter Lee Davis
On Feb 2, 2013, at 11:58 AM, jatin.je...@gmail.com wrote: Hello Rails experts... I have an interesting problem...I'm sure there are many solutions to this but I can't seem to figure it out - I have an existing set of HTML5/CSS3/jquery/javascript pages - no logic - just the UI with

Re: [Rails] Question about includes

2013-02-02 Thread andreo
HI william, how exactly does chrome prompt that? whats the view like? is that the only line you have on your controller? can you be a little more specific and post exactly what is the error you get. all the best, Andre On Friday, 1 February 2013 10:06:40 UTC+1, William Herry wrote: I

Re: [Rails] Create Ruby on Rails project from existing HTML pages mysql schema

2013-02-02 Thread Hassan Schroeder
On Sat, Feb 2, 2013 at 8:58 AM, jatin.je...@gmail.com wrote: I have an existing set of HTML5/CSS3/jquery/javascript pages - no logic - just the UI with content, etc. And I also have the schema for mysql project. And then how about the database? Or do I need to start fresh on creating

[Rails] ActiveRecord scope with association

2013-02-02 Thread Soichi Ishida
rails 3.2.11 I have models Airport :name, :string belongs_to city City :name, :string has_many airports belongs_to country Country :name, :string has_many cities and I want to search a particular airport through this association scope :search_airport, where(:name = name, :city