Re: [Rails] How to create first user for sign in using devise

2013-07-22 Thread Dheeraj Kumar
Create a new User object, then fill in the fields, and call save. -- Dheeraj Kumar On Monday 22 July 2013 at 5:19 PM, Tushar Patil wrote: Hi, I want to authentication for sign in and sign out, i add gem file and create a user model using devise in rails3, i want to create a user for

[Rails] Re: Combine two apps into one? Engines?

2013-07-22 Thread andreo
What about an approach where you publish both applications as gems? wouldn't that work? a setup like spree where you have spree_social and stuff like that? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group

[Rails] Re: Combine two apps into one? Engines?

2013-07-22 Thread Patrick Bartels
That's exactly what I'm trying but routes etc. are not working hence this post :) -- Posted via http://www.ruby-forum.com/. -- 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

Re: [Rails] How to create first user for sign in using devise

2013-07-22 Thread Emil S
I use email for login , so I do this in the console/database seed file : User.create(email: 't...@test.com', password: 'password123', password_confirmation: 'password123') Then I log in with the t...@test.com and password123 On 22 July 2013 17:21, Dheeraj Kumar a.dheeraj.ku...@gmail.com

[Rails] How to create first user for sign in using devise

2013-07-22 Thread Tushar Patil
Hi, I want to authentication for sign in and sign out, i add gem file and create a user model using devise in rails3, i want to create a user for first sign in and sign out, how can i create, any suggestion. -- You received this message because you are subscribed to the Google Groups

Re: [Rails] Re: How to create first user for sign in using devise

2013-07-22 Thread Dave Aronson
On Mon, Jul 22, 2013 at 11:39 AM, Robert Walker li...@ruby-forum.com wrote: I generally dislike the practice of using email addresses as usernames. Amen! In addition to the reasons you list, people often have multiple addresses at once -- I myself have several, not even including the hundreds

Re: [Rails] How to create first user for sign in using devise

2013-07-22 Thread Norbert Melzer
Devise has a wonderful kickstarter, just take a look into the readme and follow the steps. Am 22.07.2013 13:50 schrieb Tushar Patil tushar01pa...@gmail.com: Hi, I want to authentication for sign in and sign out, i add gem file and create a user model using devise in rails3, i want to create

[Rails] Re: How to create first user for sign in using devise

2013-07-22 Thread Robert Walker
Emil S. wrote in post #1116233: I use email for login , so I do this in the console/database seed file : User.create(email: 't...@test.com', password: 'password123', password_confirmation: 'password123') Then I log in with the t...@test.com and password123 Personally speaking, I generally

[Rails] rails is not to logging controller, action, parameters, complection time, etc in development mode

2013-07-22 Thread John Merlino
For this one particular project, rails is not to logging controller, action, parameters, complection time, etc in development mode. And I am not sure why. When I check in the console the log level I notice: Rails.logger.level = 0 So I am not sure why it doesn't log the information it

[Rails] Re: Combine two apps into one? Engines?

2013-07-22 Thread andreo
1.So what is that happens on the views? 2.When you try to visit the login path, what happens? 3.Do you have tests for it? where does it fail in the tests? 4.Whats the output on the logs? 5.Have you tried to use something like ruby-debugger to go through the code and see what happens on the

[Rails] how to use activemodel collection.build for a has_many :through association

2013-07-22 Thread James Gray
Hi all, In my controller I am doing the following to populate a nested form for a has_many through association: def new @specification = Specification.new Component.find_each.each do |component| @specification.component_specifications.build(:component_id = component.id)

[Rails] Routing error

2013-07-22 Thread trekr67
Hi, I'm a newbie Ruby on Rails developer and have across the following problem: I've put an image on a page and want to be taken to twitter to be authenticated, when the image is clicked however I get the following error when I do: ActionController::Routing error (No route matches [GET]

[Rails] Re: “Add 'gem sqlite3'' to your Gemfile”

2013-07-22 Thread Константин Медведев
On Friday, 28 June 2013 02:53:20 UTC+4, Ruby-Forum.com User wrote: Hi guys, I only have Notepad to view this information, so it just looks like a long line of text. Gemfile.lock has the following text: sqlite3 (1.3.7-x86-mingw32) I had the same troulbe on Windows7-x64 even I made

[Rails] Using :group with #count generating bad SQL in Postgres

2013-07-22 Thread yaw
Rails 4.0.0, Ruby 2.0 class Title ... ... has_many :comments def self.order_by_number_of_comments_descending select('titles.*, count(comments.id) AS comments_count'). joins(:comments). group('titles.id'). order('comment_count DESC') end results in a malformed SQL on

[Rails] Does anyone develop on Mac and deploy on *BSD?

2013-07-22 Thread jmcguckin
I have many questions... Joe -- 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 rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send

Re: [Rails] Routing error

2013-07-22 Thread Tamara Temple
On Jul 21, 2013, at 6:06 AM, trekr67 cebi...@gmail.com wrote: Hi, I'm a newbie Ruby on Rails developer and have across the following problem: I've put an image on a page and want to be taken to twitter to be authenticated, when the image is clicked however I get the following error