if your code is exactly as typed...
check your tags, you have an additional end %>
hope this helps.
On 2/23/07, Mike Dershowitz
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
>
> Hi:
>
> I want to do something that''s pretty simple I think, or at least
it was
> in pure javascript, but i''m getting tripped up in rails. I have a
Hide
> link that should hide a certain div when clicked. When clicked, I want
> that link to be replaced with a "show" link, and when that link
is
> clicked, I want the stuff that was hidden to be shown. I need some
> direction or suggestions here, becuase I''m using the following in
my
> view:
>
> <div id="hide-subs">
> <%= link_to_function("Hide Subgoals", nil, :id =>
"more_link") do
> |page|
> page[:hide-subs].replace_html "<%=
link_to_function("Hide
> Subgoals")
>
> do |page| end %>"
> end %>
> </div>
>
> And getting a compile error. So that''s not working. But then I
> couldn''t find a page method that simply hid a div that
wasn''t a
> scriptaculous effect. If I had that, I could add another page[:div]
> call before or after my replace_html call. And then my only problem
> would be how to inject merely a link as the "replace_html". So
> basically I''m looking for some direction, as I''m
unfamiliar with how
> this structure would work.
>
> Thanks so much in advance for your help!
>
> Mike
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
--
Saludos,
Juan Roberto Morales
Gerente General
Digital Vision Studios
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---