Not sure if it was intentional or not, but the "magic" div needs its
id in quotes (same with your other post so I''m guessing that this is
accurate).
Also, Redbox inserts a div into your page and copies the results of
rendering the named action (remote_redbox) into that div. As such,
you do not need the :update parameter. An example of my use:
<%= link_to_remote_redbox
h(activity.name), :url=>edit_activity_path(activity), :method=>:get -
%>
The :method=>:get was necessary because I''m using RESTful
controllers.
On Jul 4, 8:02 am, Unni Krishnan
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> following my code for redbox... but its not working ...do anyone know
> why
>
> ----------------
>
> <%= javascript_include_tag "prototype" %>
>
> <%= stylesheet_link_tag ''redbox'' %>
> <%= javascript_include_tag :defaults %>
> <%= javascript_include_tag ''redbox'' %>
> <html>
>
> <head></head>
>
> <body>
> <%= link_to_remote_redbox(''Login'', :update =>
''magic'', :url => {:action
> => ''log''}) %> |
> <%= link_to_remote_redbox(''Signup'', :update =>
''magic'', :url => {:action
> => ''sig''}) %>
>
> <div id=magic >
>
> </div>
>
> </body>
> </html>
>
> -----------------
>
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---