[Rails] user profiles : same controller as the world?

2015-12-30 Thread fugee ohu
Should i use the same controller as the world for allowing users to edit, update their profiles that I use to let the world view the profiles? i have associated models and i have 2 routes going to the same controller action I'm not sure what I should do How would most websites do this? GET/u

Re: [Rails] Why the first user created would get id 2 instead of 1?

2015-12-30 Thread jelinek
Sandbox won't persist data. It'll do a transactional rollback. It never really persists data. But your quirk is interesting. I've tried duplicating it and cannot. Sent from my iPhone > On Dec 30, 2015, at 4:26 PM, 'krfg' via Ruby on Rails: Talk > wrote: > > >> On Tuesday, December 29, 20

Re: [Rails] Why the first user created would get id 2 instead of 1?

2015-12-30 Thread 'krfg' via Ruby on Rails: Talk
On Tuesday, December 29, 2015 at 7:31:36 PM UTC+1, tamouse wrote: > > > >> What happened when you tried creating a new test application? > >> > > The problem as you've stated it is that your first user gets id=2. The > point of the test is to find the minimum set of conditions that > reproduce

[Rails] Re: ActionController::RoutingError: No route matches [CONNECT] "/"

2015-12-30 Thread Torsten Rüger
Thanks Fred, strange to think there should be an error that can't be handled in rails. Still, thanks for the answer, which i am unfortunately not sure i understand. Are you saying i should have a On Tuesday, 29 December 2015 21:29:00 UTC+2, Frederick Cheung wrote: > > On Tuesday, December

[Rails] link_to nested resources

2015-12-30 Thread fugee ohu
users has_one profile profile has_many schools i'm trying to build a link to this route edit_user_profile_school GET/users/:user_id/profile/schools/:id/edit(.:format) schools#edit i've been trying stuff like --

[Rails] Re: Get a username when using Devise and Omniauth

2015-12-30 Thread Matt Jones
On Tuesday, 29 December 2015 16:28:32 UTC-5, Michael Prieto wrote: > > Hello everyone o/ > > I'm currently building a Rails app and I'm using Devise > and Omniauth > (Google OAuth2 and Facebook) for > authenticati

Re: [Rails] Re: Need help upgrading to Rails 5

2015-12-30 Thread James Jelinek (shakycode)
Yeah you have to specify the version number prior to the “new” verb. I think this is especially important when you have multiple versions of the Rails gem installed on your system. > On Dec 30, 2015, at 11:15 AM, Dan Cromer wrote: > > I was able to fix this. The problem was that I did not g

[Rails] Re: Need help upgrading to Rails 5

2015-12-30 Thread Dan Cromer
I was able to fix this. The problem was that I did not generate my new rails project using the Rails 5 generator. Instead, when I did rails _5.0.0.beta1_ new myapp Everything worked On Wednesday, 30 December 2015 01:36:42 UTC-8, Dan Cromer wrote: > > I'm experiencing the same problem. I'm no

[Rails] Re: Need help upgrading to Rails 5

2015-12-30 Thread Dan Cromer
I'm experiencing the same problem. I'm not trying to upgrade an app, though, I'm only trying to play with a new rails app from the ground up, just to try out some of the new features. Have you been able to figure out what the problem is? On Wednesday, 23 December 2015 06:55:59 UTC-8, Johan And