Re: [Rails] Re: Problem with new action 'validate'

2011-04-18 Thread Bryan Crossland
On Mon, Apr 18, 2011 at 6:01 PM, Tomas R. wrote: > so you say that should be form_for params[:key]? that wont work neither > > You only fixed part of the issue. Fred pointed out two things. The first was that you specified params[:key] incorrectly. The second, and more important, is that you put

[Rails] Re: Problem with new action 'validate'

2011-04-18 Thread Tomas R.
so you say that should be form_for params[:key]? that wont work neither -- 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 post to this group, send email to rubyonrails-talk@googlegroups.com. To

[Rails] Re: Problem with new action 'validate'

2011-04-18 Thread Frederick Cheung
On Apr 17, 9:12 pm, "Jose tomas R." wrote: > I've created a new action in my invitations controller named > validate and validation > > controller/invitations_controller.rb > > def validate > end > > def validation >   @invitation = Invitation.find(params(:key)) > shouldn't that be params[:key]