Ruby on Rails Monday, May 2, 2011

I have the below model that gets created with create action with :running field having value of false.

class Portal
  include Mongoid::Document
  field :url, :type => String
  field :user, :type => String
  field :password, :type => String
  field :running, :type => Boolean, :default => false
end

Later I want to set :running to true. I want to use the button_to form helper method to set running to true.
The button is installed in the index view.
What arguments needs to be passed to the button_to method?

Thanks,
Alex

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment