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:
Maybe a much nicer solution in this case would be to render the form
in a hidden div below the link and then just hide the link and un-hide
the form when the link is clicked. Like so:
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
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: