Forum: Ruby on Rails Redbox implementation not showing anything

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ram (Guest)
on 2009-03-18 14:00
(Received via mailing list)
Hi all,

Im trying to implement redbox for submitting some small forms. Here's
the code im using.

#redbox link
<%= link_to_remote_redbox 'Change Password', :url => {:controller
=> :users, :action => :change_password, :id =>}, :method
=> :get %>

#users controller

  def change_password
    @user = User.find(params[:id])
    respond_to do |format|
      format.js {render :layout => "modal"}
    rescue ActiveRecord::RecordNotFound

#modal layout

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://">
<html xmlns="">

  <link rel="stylesheet" href="/stylesheets/styles.css" type="text/css"
media="screen" charset="utf-8" />
  <%= javascript_include_tag :defaults %>
        <%= javascript_include_tag "redbox"%>

    <%= yield %>



<div id="hidden_content_<>_users_change_password">
<% form_for :user, :url => changed_password_user_path(@user), :html =>
{:method => 'put'} do |f| %>
  <div>Old  : <%= f.password_field :old_password, :size => 15 %></div>
  <div>New  : <%= f.password_field :password, :size => 15 %></div>
  <div>Confirm     : <%= f. password_field :confirm_password, :size =>
15 %></div>
  <p><%= f.submit "Change" %></p>
<% end %>
<%= link_to_close_redbox "Cancel" %>

Now when i click the link, the RedBox Overlay is shown but the form
does not turn up. Only the overlay is shown. If i check the dev log,
it says the action has been successfully called and the rendering has
been done.
What am i doing wrong here? Any ideas?
My best guess is that the JS is screwing up things somewhere. Or, I
could be doing something basically very wrong.. :D
This topic is locked and can not be replied to.