Red box is not working


#1

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’ %>

<%= link_to_remote_redbox('Login', :update => 'magic', :url => {:action => 'log'}) %> | <%= link_to_remote_redbox('Signup', :update => 'magic', :url => {:action => 'sig'}) %>


#2

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


#3

could u please tell me something about RESTful controllers and REST
concept?