2010/5/13 Iñaki Baz Castillo <[email protected]>:
> 2010/5/13 Iñaki Baz Castillo <[email protected]>:
>> However trying to use @record is incorrect as it's nil. I think I must
>> take the :id parameter sent in the GET request and use it to find the
>> corresponding entry using MyModel.find(:id).
>> But I don't know how to get such :id, perhaps something as @params[;id] ?
>
> Humm, not, this is RESTful !!
> I must create a route first and map it correctly (I hope) :)

Humm, it's enough to use "params[:id]"  :)

-- 
Iñaki Baz Castillo
<[email protected]>

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.

Reply via email to