Quantcast
Channel: Pragmatic Forums | Posts in topic 'Form_for doesn't create param in 2.3.2'
Viewing all articles
Browse latest Browse all 20

Form_for doesn't create param in 2.3.2 posted by Richard Day @ Thu, 02 Jul 2009 04:49:00 +0000

$
0
0

I am new to Rails and this probably breaks all sorts of standards but I got it to work by doing the following.

In the view I put the following code for the form_for declaration

<% form_for :entity, :url => { :action => :update_entity, :entity_id => @entity.id } do |form| %>

And in the controller this code

@entity = Entity.find(params[:entity_id])


Viewing all articles
Browse latest Browse all 20

Trending Articles