Forum: Ruby on Rails Red box is not working

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Unni K. (Guest)
on 2007-07-04 16:02
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>

-----------------
AndyV (Guest)
on 2007-07-05 20:40
(Received via mailing list)
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 K. <removed_email_address@domain.invalid>
unnikrishnan (Guest)
on 2007-07-06 08:50
could u please tell me something about RESTful controllers and REST
concept?
This topic is locked and can not be replied to.