Note that there are some explanatory texts on larger screens.

plurals
  1. POissue with devise views rendered form a partial
    primarykey
    data
    text
    <p>i designed a custom form for my devise registration . but when ever i try to create a new user , devise doesn't post the data to the database and doesn't create the user . </p> <p>i follow the devise documentation </p> <p>in my application controller i have</p> <pre><code> def resource_name :user end def resource @resource ||= User.new end def devise_mapping @devise_mapping ||= Devise.mappings[:user] end </code></pre> <p>i made a partial in devise name:" _signup.html.erb" with the custom form and render it in devise/registration/new </p> <pre><code>&lt;%=render :partial =&gt; '/devise/signup', :locals =&gt; {:resource =&gt; resource}%&gt; </code></pre> <p>there's no error display when i sign up only in the log and when check the rails console no user was created . Need some help to figure out how to fix it .</p> <pre><code>Started GET "/users/sign_up?utf8=%E2%9C%93&amp;authenticity_token=P0zVBHBKE2Ee8V3cRwtIJwAtO2txEaWEV3hGsRcqfno%3D&amp;u ser%5Bfirst_name%5D=Obed&amp;user%5Bfirst_name%5D=lorisson&amp;user%5Bemail%5D=obed.lorisson%40gmail.com&amp;user%5Bpasswo rd%5D=[FILTERED]&amp;user%5Bpassword%5D=[FILTERED]&amp;commit=Join+spotlight+Now" for 127.0.0.1 at 2013-08-20 12:11:40 -0400 Processing by Devise::RegistrationsController#new as HTML Parameters: {"utf8"=&gt;"✓", "authenticity_token"=&gt;"P0zVBHBKE2Ee8V3cRwtIJwAtO2txEaWEV3hGsRcqfno=", "user"=&gt;{"fi rst_name"=&gt;"lorisson", "email"=&gt;"obed.lorisson@gmail.com", "password"=&gt;"[FILTERED]"}, "commit"=&gt;"Join spotligh t Now"} Rendered devise/shared/_links.erb (0.0ms) Rendered devise/_signup.html.erb (15.6ms) Rendered devise/registrations/new.html.erb within layouts/application (46.9ms) Rendered shared/_header.html.erb (0.0ms) Rendered shared/_flash_messages.html.erb (0.0ms) Rendered shared/_footer.html.erb (0.0ms) Completed 200 OK in 156ms (Views: 156.2ms | ActiveRecord: 0.0ms) </code></pre> <p>Signup forms</p> <pre><code> &lt;%= form_for(@user, :url =&gt; user_registration_path(@user)) do |f| %&gt; &lt;%= devise_error_messages! %&gt; &lt;fieldset class="form_division"&gt; &lt;div class="personal"&gt; &lt;div class="controls"&gt; &lt;%= f.text_field :first_name, placeholder: 'first name ',:required =&gt; "true"%&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="personal"&gt; &lt;div class="controls"&gt; &lt;%= f.text_field :first_name, placeholder: 'last name ',:required =&gt; "true"%&gt; &lt;/div&gt; &lt;/div&gt; &lt;/fieldset&gt; &lt;div class="group"&gt; &lt;div class="circle"&gt; &lt;span&gt;2&lt;/span&gt; &lt;/div&gt; &lt;h3&gt;Your account credentials&lt;/h3&gt; &lt;/div&gt; &lt;fieldset class="form_division"&gt; &lt;div class="credential"&gt; &lt;div class="controls"&gt; &lt;%= f.email_field :email, :autofocus =&gt; true ,placeholder: 'Email'%&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="credential"&gt; &lt;div class="controls"&gt; &lt;%= f.password_field :password, placeholder: 'Password' %&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="credential"&gt; &lt;div class="controls"&gt; &lt;%= f.password_field :password, placeholder: 'Password comfirmation' %&gt; &lt;/div&gt; &lt;/div&gt; &lt;/fieldset&gt; &lt;div class="actions"&gt; &lt;p&gt;By signing up, you agree to our &lt;span&gt;&lt;a href=""&gt;terms&lt;/a&gt;&lt;/span&gt; of use and &lt;span&gt;&lt;a href=""&gt;privacy policy&lt;/a&gt;&lt;/span&gt; &lt;/p&gt; &lt;div class="shared_links"&gt; &lt;%= render "devise/shared/links" %&gt; &lt;/div&gt; &lt;div class="controls"&gt; &lt;%= f.submit "Join spotlight Now", class: 'btn-signup animated wobble' %&gt; &lt;!--&lt;a href="" class="btn-signup"&gt;join spotlight now&lt;/a&gt;--&gt; &lt;/div&gt; &lt;/div&gt; &lt;% end %&gt; </code></pre> <p>rendered this is what it look like </p> <pre><code>&lt;form accept-charset="UTF-8" action="/users" class="new_user" id="new_user" method="post"&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload