[Rails] Re: Rendered as needed

2009-08-18 Thread RVince
Thank you so much -- this is exactly the solution I need. -RVince --~--~-~--~~~---~--~~ 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

[Rails] Re: Rendered as needed

2009-08-18 Thread hitch
Yes, link_to_remote will call some action in your controller. That action can generate javascript to update portion of your page. That controller can have an some-action.rjs template (instead of the usual some-action.html.erb) That template could look something like this: page.replace_html 'id-of

[Rails] Re: Rendered as needed

2009-08-18 Thread RVince
So, say, in page a I have data in rows, say. On each row, a link. That link should open a form between the rows. YOu are saying there is a way I can do that with link_to_remote somehow On Aug 18, 10:55 am, hitch wrote: > You can't do both of these things at the same time. > If you want to use to

[Rails] Re: Rendered as needed

2009-08-18 Thread hitch
You can't do both of these things at the same time. If you want to use toggle, the content should already be there and may be hidden. If you want to generate the content when the link is clicked, then you should use link_to_remote to render the link, Then you can render a partial in your rjs temp