Why are you opposed to using the controller?

In any case, you can drop the RJS into app/views/journals/
expand_create_form.js.rjs
and it should work. That *is* the shortcut...

--Matt Jones

On Feb 18, 5:38 pm, Andrew <[email protected]> wrote:
> Hi everyone!
>
> I'm new to Ruby and JS, and there is a problem I'm trying to solve:
> I need a link that, when clicked, transforms into a form for inputting
> data. I have next code:
...
>
> The problem is I don't want to use the controller, is there some
> shortcut to call rjs code when user clicks on "New Journal" link?
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to