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
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
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]
Christina,
Thanks for the response.
This is what my rake routes command outputs. The
encryption_passphrases resource is at the top of everything in the
application. The :controller/:action/:id route is at the very bottom.
encryption_passphrases GET/
encryption_passphrases
{
Try running "rake routes" to see if the URL you get is recognized as a
resource url. Maybe the :controller/:action/:id route outranks your
resources route. The resources route should be specified higher up in
the file.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~---
5 matches
Mail list logo