search for: signup_form

Displaying 3 results from an estimated 3 matches for "signup_form".

Did you mean: signin_form
2006 Jul 15
1
Redirect_to from initialize method
Hello, I''m curious as to why this bit of code doesn''t work: -- class SignupController < ApplicationController def initialize signup.call end def signup redirect_to :action => "signup_form" end end -- You have a nil object when you didn''t expect it! The error occured while evaluating nil.rewrite -- Whereas if I comment the signup.call and call the signup method directly the redirection works fine. My apologies if this is utterly trivial, thanks. -- Posted vi...
2006 Jul 28
3
render :update working incorrectly
I have the following code render :update do |page| page.alert(''Hey there'') end Why is it taking me to a blank page with the following text at the top: alert("Hey there"); This text is in <pre> tags as well. Its kinda weird. Thats what I want to execute on the page that it came from. Any ideas? This happens with the other commands where it renders the
2006 Jan 24
3
AJAX Preview & Edit Page Problem
...e div d. User chooses to edit form e. Show form again for editing with fields populated with previously entered params Note that AJAX form is to be replaced with the preview page (I want the preview page to have different buttons and no form). MAIN .RHTML PAGE ---------------- <div id="signup_form"> <%= form_remote_tag(:update => "signup_form", :url => {:action => "signup"}) %> <%= render(:partial => "user/edit") %> <%= hidden_field_tag(''signup_button'', ''Preview'') %>...