Ok, so I know this is a totally obvious question, but it’s dumbfounding
me
right now. I’ve got Ruby on Rails going and I know this has worked
before…
I have a html fragment that does:
<%= link_to_remote (h(’’),
:id => ‘1’,
:update => ‘todo_display’,
:url => { :action => :render_todo_display }) %>
This is the code in the same controller:
def render_todo_display
render(:layout => false)
@par = @params[“id”]
end
and this is the .rhtml file:
just somethign
<%= @par %>
just somethign else
But when I click on the link in the html fragment, the correct section
gets
updated with just this:
just somethign
just somethign else
I’ve tried:
@par = params[:id]
that didn’t work. I know this is totally easy, but what the heck is
wrong?