:action through .rjs template?

Hello All,

I have a nooby question again.
Here is what I am trying to do: I have a DIV object which shows my
‘list of items’. If users click on link ‘Add Item’, i fade out another
DIV which is data entry screen. Now user enter data hit ‘save’ . Once
Saved. I need to show ‘New Saved Items’ instead of ‘List of Items’ .
What would the best way to do this? I am was trying to use RJS
template since it involves fading ‘list of items’ and retrieving/
showing 'New Saved Items ’ .
I have an action ‘NewSavedItem’ which need to be invoked to retrieve
the list with one paramter :userId.

So far in my ‘addItem’ Action, after saving the item, I have code
redirect_to :action =>“refresh” ,:uid=>@userId
where ‘refresh’ is my rjs template.
In rjs temmplate i hide the ‘list of itms’ which works fine but i am
not sure how to call the action ‘newSavedItem’ to retrieve the new
items.
Any ideas please?
thank you

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs