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

2015-12-31 Thread Frederick Cheung
On Wednesday, December 30, 2015 at 9:25:01 PM UTC, Torsten Rüger wrote: > 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. You could also handle via a rack middleware or

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

2015-12-31 Thread Frederick Cheung
On Wednesday, December 30, 2015 at 10:30:40 PM UTC, James Jelinek wrote: > Sandbox won't persist data. It'll do a transactional rollback. It never > really persists data.  > > As I said earlier, rolling back transactions doesn't reset sequences on Postgres (

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

2015-12-31 Thread 'krfg' via Ruby on Rails: Talk
Well, so thank you for helping me and supporting me up to the solution. I am already looking for and reading documentation on transactions, sequences and truncations in Postgres, which is new stuff for me. My next goal is finding how to reset the id sequence in Postgres. I seize the opportunity

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

2015-12-31 Thread Colin Law
On 31 Dec 2015 14:10, "'krfg' via Ruby on Rails: Talk" < rubyonrails-talk@googlegroups.com> wrote: > > Well, so thank you for helping me and supporting me up to the solution. > I am already looking for and reading documentation on transactions, sequences and truncations in Postgres, which is new

[Rails] Ruby Objects,Class & Methods

2015-12-31 Thread Sheetal Jadhav
Hi All, See this blog and let me know what you think about it. http://technopadia.com/classes-in-ruby/ -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[Rails] cap & rvm - switched from system rvm to user rvm

2015-12-31 Thread tom
hi, i had rvm system wide, but then switched to a user installation, and now im getting this: cap production deploy DEBUG [18852256] Running /usr/bin/env which passenger as administra...@domain.com DEBUG [18852256] Command: ( export RVM_BIN_PATH="~/.rvm/bin" ; /usr/bin/env which passenger )

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

2015-12-31 Thread Tamara Temple
'krfg' via Ruby on Rails: Talk writes: > 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.

[Rails] Re: cap & rvm - switched from system rvm to user rvm

2015-12-31 Thread tom
solved - had a doubled entry overriding the user variable On Thu, Dec 31, 2015 at 9:58 AM, tom wrote: > hi, i had rvm system wide, but then switched to a user installation, and > now im getting this: > > cap production deploy > DEBUG [18852256] Running /usr/bin/env which

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

2015-12-31 Thread Tamara Temple
Colin Law writes: > On 31 Dec 2015 14:10, "'krfg' via Ruby on Rails: Talk" < > rubyonrails-talk@googlegroups.com> wrote: >> >> Well, so thank you for helping me and supporting me up to the solution. >> I am already looking for and reading documentation on transactions, >>