Fernando Aureliano
2011-Jun-12 01:15 UTC
[Devise] Display a custom sign_UP form anywhere in your app
Hi! I know how to display an sign_in form, but now, i''d like to display a sign_up form in another place of my application. Have some way to do this? I can''t find nothing about that on the documentation thanks! -- *Fernando Aureliano* -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Tim Shaffer
2011-Jun-13 17:35 UTC
Re: [Devise] Display a custom sign_UP form anywhere in your app
Same way you''d display the form any other place I''d imagine... <%= form_for(User.new, :as => :user, :url => registration_path(:user)) do |f| %> <%= devise_error_messages! %> form fields here... <%= f.submit "Sign up" %> <% end %> -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/M9XgyCg_Z8AJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Fernando Aureliano
2011-Jun-13 23:42 UTC
Re: [Devise] Display a custom sign_UP form anywhere in your app
Dont work. maybe because I''m already logged in when I try a new register? On Mon, Jun 13, 2011 at 2:35 PM, Tim Shaffer <timshaffer-BUHhN+a2lJ4@public.gmane.org> wrote:> Same way you''d display the form any other place I''d imagine... > > <%= form_for(User.new, :as => :user, :url => registration_path(:user)) do |f| %> > <%= devise_error_messages! %> > form fields here... > <%= f.submit "Sign up" %> > <% end %> > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/M9XgyCg_Z8AJ. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- *Fernando Aureliano* -------------------------------------------------------------- [iOSDeveloper] - *ObjectiveC* [WebDesigner] - *CSS3&HTML5* *[WebDeveloper] - RubyOnRails* *-------------------------------------------------------------- * [portfolio] <http://www.fernandoaureliano.com> - [blog]<http://www.fernandoaureliano.com/> - [personal blog] <http://www.obsessivocompulsivo.com/> - [twitter]<http://twitter.com/Pailoro> -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Tim Shaffer
2011-Jun-14 01:27 UTC
Re: [Devise] Display a custom sign_UP form anywhere in your app
Which part doesn''t work? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/m5PzyPsORQ4J. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Fernando Aureliano
2011-Jun-14 02:00 UTC
Re: [Devise] Display a custom sign_UP form anywhere in your app
The form appears, I put the data and go! Dont show any erros, but the data are not recorded On Mon, Jun 13, 2011 at 10:27 PM, Tim Shaffer <timshaffer-BUHhN+a2lJ4@public.gmane.org> wrote:> Which part doesn''t work? > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/m5PzyPsORQ4J. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- *Fernando Aureliano* -------------------------------------------------------------- [iOSDeveloper] - *ObjectiveC* [WebDesigner] - *CSS3&HTML5* *[WebDeveloper] - RubyOnRails* *-------------------------------------------------------------- * [portfolio] <http://www.fernandoaureliano.com> - [blog]<http://www.fernandoaureliano.com/> - [personal blog] <http://www.obsessivocompulsivo.com/> - [twitter]<http://twitter.com/Pailoro> -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin Law
2011-Jun-14 07:37 UTC
Re: [Devise] Display a custom sign_UP form anywhere in your app
On 14 June 2011 03:00, Fernando Aureliano <mail-7WGqr3rU1tU38Fpv8Ij67aBKnGwkPULj@public.gmane.org> wrote:> The form appears, I put the data and go! > Dont show any erros, but the data are not recordedHave a look in development.log to check that the data are being posted correctly and it is going to the correct action. Then if all looks ok use ruby-debug to break into your code and see what is going on. Have a look at the Rails Guide on debugging to find how to do this. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Fernando Aureliano
2011-Jun-16 19:52 UTC
Re: [Devise] Display a custom sign_UP form anywhere in your app
I can get the form in another view with the code below. But when insert the data and submit, the user is not recorded in database <%= form_for(User.new, :as => :user, :url => registration_path(:user)) do |f| %> <p><%= f.label :email %><br /> <%= f.email_field :email %></p> <p><%= f.label :password %><br /> <%= f.password_field :password %></p> <p><%= f.label :password_confirmation %><br /> <%= f.password_field :password_confirmation %></p> <p><%= f.submit "Sign up" %></p> <% end %> On Tue, Jun 14, 2011 at 4:37 AM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 14 June 2011 03:00, Fernando Aureliano <mail-7WGqr3rU1tU38Fpv8Ij67aBKnGwkPULj@public.gmane.org> > wrote: > > The form appears, I put the data and go! > > Dont show any erros, but the data are not recorded > > Have a look in development.log to check that the data are being posted > correctly and it is going to the correct action. Then if all looks ok > use ruby-debug to break into your code and see what is going on. Have > a look at the Rails Guide on debugging to find how to do this. > > Colin > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- *Fernando Aureliano* -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin Law
2011-Jun-16 21:10 UTC
Re: [Devise] Display a custom sign_UP form anywhere in your app
On 16 June 2011 20:52, Fernando Aureliano <mail-7WGqr3rU1tU38Fpv8Ij67aBKnGwkPULj@public.gmane.org> wrote:> I can get the form in another view with the code below. > But when insert the data and submit, the user is not recorded in databaseI can only repeat my previous post exactly: Have a look in development.log to check that the data are being posted correctly and it is going to the correct action. Then if all looks ok use ruby-debug to break into your code and see what is going on. Have a look at the Rails Guide on debugging to find how to do this. Colin> > <%= form_for(User.new, :as => :user, :url => registration_path(:user)) do > |f| %> > > <p><%= f.label :email %><br /> > <%= f.email_field :email %></p> > > <p><%= f.label :password %><br /> > <%= f.password_field :password %></p> > <p><%= f.label :password_confirmation %><br /> > <%= f.password_field :password_confirmation %></p> > <p><%= f.submit "Sign up" %></p> > <% end %> > > On Tue, Jun 14, 2011 at 4:37 AM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: >> >> On 14 June 2011 03:00, Fernando Aureliano <mail-7WGqr3rU1tU38Fpv8Ij67aBKnGwkPULj@public.gmane.org> >> wrote: >> > The form appears, I put the data and go! >> > Dont show any erros, but the data are not recorded >> >> Have a look in development.log to check that the data are being posted >> correctly and it is going to the correct action. Then if all looks ok >> use ruby-debug to break into your code and see what is going on. Have >> a look at the Rails Guide on debugging to find how to do this. >> >> Colin >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> > > > > -- > Fernando Aureliano > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Fernando Aureliano
2011-Jun-16 21:42 UTC
Re: [Devise] Display a custom sign_UP form anywhere in your app
Hi! First user (admin) I already register. It''s a security question. If I leave the registration page open, everyone can find that and register yourself on admin, and have access... =D On Thu, Jun 16, 2011 at 6:10 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 16 June 2011 20:52, Fernando Aureliano <mail-7WGqr3rU1tU38Fpv8Ij67aBKnGwkPULj@public.gmane.org> > wrote: > > I can get the form in another view with the code below. > > But when insert the data and submit, the user is not recorded in database > > I can only repeat my previous post exactly: > Have a look in development.log to check that the data are being posted > correctly and it is going to the correct action. Then if all looks ok > use ruby-debug to break into your code and see what is going on. Have > a look at the Rails Guide on debugging to find how to do this. > > Colin > > > > > <%= form_for(User.new, :as => :user, :url => registration_path(:user)) do > > |f| %> > > > > <p><%= f.label :email %><br /> > > <%= f.email_field :email %></p> > > > > <p><%= f.label :password %><br /> > > <%= f.password_field :password %></p> > > <p><%= f.label :password_confirmation %><br /> > > <%= f.password_field :password_confirmation %></p> > > <p><%= f.submit "Sign up" %></p> > > <% end %> > > > > On Tue, Jun 14, 2011 at 4:37 AM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> > wrote: > >> > >> On 14 June 2011 03:00, Fernando Aureliano <mail-7WGqr3rU1tU38Fpv8Ij67aBKnGwkPULj@public.gmane.org> > >> wrote: > >> > The form appears, I put the data and go! > >> > Dont show any erros, but the data are not recorded > >> > >> Have a look in development.log to check that the data are being posted > >> correctly and it is going to the correct action. Then if all looks ok > >> use ruby-debug to break into your code and see what is going on. Have > >> a look at the Rails Guide on debugging to find how to do this. > >> > >> Colin > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "Ruby on Rails: Talk" group. > >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> To unsubscribe from this group, send email to > >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> For more options, visit this group at > >> http://groups.google.com/group/rubyonrails-talk?hl=en. > >> > > > > > > > > -- > > Fernando Aureliano > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to > > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > For more options, visit this group at > > http://groups.google.com/group/rubyonrails-talk?hl=en. > > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- *Fernando Aureliano* -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Fernando Aureliano
2011-Jun-16 23:54 UTC
Re: [Devise] Display a custom sign_UP form anywhere in your app
Yeah, finally I got the answer!
http://stackoverflow.com/questions/6376718/devise-display-a-custom-sign-up-form-anywhere-in-your-app
But, for some reason, when I registered an user, he''s not recorded on
db.
But the terminal see the data correctly =/
In the terminal, I see the data, but the record its not happening. Oo
Started POST "/users" for 127.0.0.1 at 2011-06-16 20:13:33 -0300
Processing by Devise::RegistrationsController#create as HTML
Parameters: {"utf8"=>"✓",
"authenticity_token"=>"ULeV0DeOgB+Ss2qD43to/TifRfGlHxcGhJ6XDDNviBo=",
"user"=>{"nome"=>"fsdasdf",
"sobrenome"=>"fasdf", "email"=>"
fernando-gztPqf8MwC9fyO9Q7EP/yw@public.gmane.org",
"tipo"=>"Distribuidores",
"password"=>"[FILTERED]",
"password_confirmation"=>"[FILTERED]"},
"commit"=>"Sign up"}
User Load (1.0ms) SELECT "users".* FROM "users" WHERE
"users"."id" = 1
LIMIT 1
Redirected to http://localhost:3000/admin
Completed 302 Found in 119ms
On Thu, Jun 16, 2011 at 6:42 PM, Fernando Aureliano <
mail-7WGqr3rU1tU38Fpv8Ij67aBKnGwkPULj@public.gmane.org> wrote:
> Hi!
>
> First user (admin) I already register.
>
> It''s a security question. If I leave the registration page open,
everyone
> can find that and register yourself on admin, and have access...
>
> =D
>
>
>
> On Thu, Jun 16, 2011 at 6:10 PM, Colin Law
<clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:
>
>> On 16 June 2011 20:52, Fernando Aureliano
<mail-7WGqr3rU1tU38Fpv8Ij67aBKnGwkPULj@public.gmane.org>
>> wrote:
>> > I can get the form in another view with the code below.
>> > But when insert the data and submit, the user is not recorded in
>> database
>>
>> I can only repeat my previous post exactly:
>> Have a look in development.log to check that the data are being posted
>> correctly and it is going to the correct action. Then if all looks ok
>> use ruby-debug to break into your code and see what is going on. Have
>> a look at the Rails Guide on debugging to find how to do this.
>>
>> Colin
>>
>> >
>> > <%= form_for(User.new, :as => :user, :url =>
registration_path(:user))
>> do
>> > |f| %>
>> >
>> > <p><%= f.label :email %><br />
>> > <%= f.email_field :email %></p>
>> >
>> > <p><%= f.label :password %><br />
>> > <%= f.password_field :password %></p>
>> > <p><%= f.label :password_confirmation %><br />
>> > <%= f.password_field :password_confirmation %></p>
>> > <p><%= f.submit "Sign up" %></p>
>> > <% end %>
>> >
>> > On Tue, Jun 14, 2011 at 4:37 AM, Colin Law
<clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
>> wrote:
>> >>
>> >> On 14 June 2011 03:00, Fernando Aureliano
<mail-7WGqr3rU1tU38Fpv8Ij67aBKnGwkPULj@public.gmane.org>
>> >> wrote:
>> >> > The form appears, I put the data and go!
>> >> > Dont show any erros, but the data are not recorded
>> >>
>> >> Have a look in development.log to check that the data are
being posted
>> >> correctly and it is going to the correct action. Then if all
looks ok
>> >> use ruby-debug to break into your code and see what is going
on. Have
>> >> a look at the Rails Guide on debugging to find how to do
this.
>> >>
>> >> Colin
>> >>
>> >> --
>> >> You received this message because you are subscribed to the
Google
>> Groups
>> >> "Ruby on Rails: Talk" group.
>> >> To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm
>> .
>> >> To unsubscribe from this group, send email to
>> >>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> >> For more options, visit this group at
>> >> http://groups.google.com/group/rubyonrails-talk?hl=en.
>> >>
>> >
>> >
>> >
>> > --
>> > Fernando Aureliano
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups
>> > "Ruby on Rails: Talk" group.
>> > To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>> > To unsubscribe from this group, send email to
>> >
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> > For more options, visit this group at
>> > http://groups.google.com/group/rubyonrails-talk?hl=en.
>> >
>>
>> --
>> You received this message because you are subscribed to the Google
Groups
>> "Ruby on Rails: Talk" group.
>> To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> To unsubscribe from this group, send email to
>>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> For more options, visit this group at
>> http://groups.google.com/group/rubyonrails-talk?hl=en.
>>
>>
>
>
> --
> *Fernando Aureliano*
>
>
--
*Fernando Aureliano*
--------------------------------------------------------------
[iOSDeveloper] - *ObjectiveC*
[WebDesigner] - *CSS3&HTML5*
*[WebDeveloper] - RubyOnRails*
*--------------------------------------------------------------
*
[portfolio] <http://www.fernandoaureliano.com> -
[blog]<http://www.fernandoaureliano.com/>
- [personal blog] <http://www.obsessivocompulsivo.com/> -
[twitter]<http://twitter.com/Pailoro>
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
Fernando Aureliano
2011-Jun-17 00:14 UTC
Re: [Devise] Display a custom sign_UP form anywhere in your app
Ha! I found a problem. The problem is because I try to register a user while I''m logged on But, how fix this? On Thu, Jun 16, 2011 at 8:54 PM, Fernando Aureliano < mail-7WGqr3rU1tU38Fpv8Ij67aBKnGwkPULj@public.gmane.org> wrote:> Yeah, finally I got the answer! > > > http://stackoverflow.com/questions/6376718/devise-display-a-custom-sign-up-form-anywhere-in-your-app > > But, for some reason, when I registered an user, he''s not recorded on db. > But the terminal see the data correctly =/ > > In the terminal, I see the data, but the record its not happening. Oo > > > > Started POST "/users" for 127.0.0.1 at 2011-06-16 20:13:33 -0300 > Processing by Devise::RegistrationsController#create as HTML > Parameters: {"utf8"=>"✓", > "authenticity_token"=>"ULeV0DeOgB+Ss2qD43to/TifRfGlHxcGhJ6XDDNviBo=", > "user"=>{"nome"=>"fsdasdf", "sobrenome"=>"fasdf", "email"=>" > fernando-gztPqf8MwC9fyO9Q7EP/yw@public.gmane.org", "tipo"=>"Distribuidores", "password"=>"[FILTERED]", > "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} > User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 > LIMIT 1 > Redirected to http://localhost:3000/admin > Completed 302 Found in 119ms > > > On Thu, Jun 16, 2011 at 6:42 PM, Fernando Aureliano < > mail-7WGqr3rU1tU38Fpv8Ij67aBKnGwkPULj@public.gmane.org> wrote: > >> Hi! >> >> First user (admin) I already register. >> >> It''s a security question. If I leave the registration page open, everyone >> can find that and register yourself on admin, and have access... >> >> =D >> >> >> >> On Thu, Jun 16, 2011 at 6:10 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>wrote: >> >>> On 16 June 2011 20:52, Fernando Aureliano <mail-7WGqr3rU1tU38Fpv8Ij67aBKnGwkPULj@public.gmane.org> >>> wrote: >>> > I can get the form in another view with the code below. >>> > But when insert the data and submit, the user is not recorded in >>> database >>> >>> I can only repeat my previous post exactly: >>> Have a look in development.log to check that the data are being posted >>> correctly and it is going to the correct action. Then if all looks ok >>> use ruby-debug to break into your code and see what is going on. Have >>> a look at the Rails Guide on debugging to find how to do this. >>> >>> Colin >>> >>> > >>> > <%= form_for(User.new, :as => :user, :url => registration_path(:user)) >>> do >>> > |f| %> >>> > >>> > <p><%= f.label :email %><br /> >>> > <%= f.email_field :email %></p> >>> > >>> > <p><%= f.label :password %><br /> >>> > <%= f.password_field :password %></p> >>> > <p><%= f.label :password_confirmation %><br /> >>> > <%= f.password_field :password_confirmation %></p> >>> > <p><%= f.submit "Sign up" %></p> >>> > <% end %> >>> > >>> > On Tue, Jun 14, 2011 at 4:37 AM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> >>> wrote: >>> >> >>> >> On 14 June 2011 03:00, Fernando Aureliano <mail-7WGqr3rU1tU38Fpv8Ij67W+9Dc21ngu3@public.gmane.orgm >>> > >>> >> wrote: >>> >> > The form appears, I put the data and go! >>> >> > Dont show any erros, but the data are not recorded >>> >> >>> >> Have a look in development.log to check that the data are being posted >>> >> correctly and it is going to the correct action. Then if all looks ok >>> >> use ruby-debug to break into your code and see what is going on. Have >>> >> a look at the Rails Guide on debugging to find how to do this. >>> >> >>> >> Colin >>> >> >>> >> -- >>> >> You received this message because you are subscribed to the Google >>> Groups >>> >> "Ruby on Rails: Talk" group. >>> >> To post to this group, send email to >>> rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> >> To unsubscribe from this group, send email to >>> >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> >> For more options, visit this group at >>> >> http://groups.google.com/group/rubyonrails-talk?hl=en. >>> >> >>> > >>> > >>> > >>> > -- >>> > Fernando Aureliano >>> > >>> > -- >>> > You received this message because you are subscribed to the Google >>> Groups >>> > "Ruby on Rails: Talk" group. >>> > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm >>> . >>> > To unsubscribe from this group, send email to >>> > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> > For more options, visit this group at >>> > http://groups.google.com/group/rubyonrails-talk?hl=en. >>> > >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Ruby on Rails: Talk" group. >>> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> To unsubscribe from this group, send email to >>> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> For more options, visit this group at >>> http://groups.google.com/group/rubyonrails-talk?hl=en. >>> >>> >> >> >> -- >> *Fernando Aureliano* >> >> > > > -- > *Fernando Aureliano* > -------------------------------------------------------------- > [iOSDeveloper] - *ObjectiveC* > [WebDesigner] - *CSS3&HTML5* > *[WebDeveloper] - RubyOnRails* > *-------------------------------------------------------------- > * > [portfolio] <http://www.fernandoaureliano.com> - [blog]<http://www.fernandoaureliano.com/> > - [personal blog] <http://www.obsessivocompulsivo.com/> - [twitter]<http://twitter.com/Pailoro> > >-- *Fernando Aureliano* -------------------------------------------------------------- [iOSDeveloper] - *ObjectiveC* [WebDesigner] - *CSS3&HTML5* *[WebDeveloper] - RubyOnRails* *-------------------------------------------------------------- * [portfolio] <http://www.fernandoaureliano.com> - [blog]<http://www.fernandoaureliano.com/> - [personal blog] <http://www.obsessivocompulsivo.com/> - [twitter]<http://twitter.com/Pailoro> -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Tim Shaffer
2011-Jun-17 14:59 UTC
Re: [Devise] Display a custom sign_UP form anywhere in your app
On Thursday, June 16, 2011 8:14:19 PM UTC-4, Fernando Aureliano wrote:> > Ha! > > I found a problem. The problem is because I try to register a user while > I''m logged on > > But, how fix this? >Don''t register a user while you''re logged in. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/woy3BH44N44J. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.