Re: [Rails] Different devise confirmation behaviour for same model

2014-04-26 Thread Walter Lee Davis
On Apr 25, 2014, at 11:19 PM, Ankur Kumar wrote: Hi, I want to have different email confirmation behaviour for same model depending on certain conditions. Case 1: User signs up on his own using an email and password, gets Mail Template 1 (the mail only asks for email confirmation,

[Rails] OMNIAUTH with Rails

2014-04-26 Thread trekr67
Hi, I'm trying to create a feature on my rails app that will allow users to authenticate themselves using Github. I'm using Omniauth to do so. However when I click on the link on my test page which should take me to the Github login page. It does this and when I type in my Github username and

[Rails] Rspec testing in rails3

2014-04-26 Thread ruby rails
Hi, I have a Queues controller and and QueueItems controller in my rails application. In routes I have defined as below `match 'queues/:queue_id/next', :to= 'queueitems#next'` In my QueueItems Controller I have a next action and it assigns an instance variable. def next @queue = Regular

[Rails] Rspec testing in rails3

2014-04-26 Thread ruby rails
Hi, I have a Queues controller and and QueueItems controller in my rails application. In routes I have defined as below `match 'queues/:queue_id/next', :to= 'queueitems#next'` In my QueueItems Controller I have a next action and it assigns an instance variable. def next @queue = Regular

[Rails] Having trouble overriding bootsrap-sass Gem css with GMaps API accesssed through Gmaps4Rails Gem

2014-04-26 Thread Jim Whittaker
I am following the Gmaps4Rails tutorial and trying to implement it in a bootstrap framework, but am having problems. The map won't load correctly... See here: http://i.imgur.com/qMiczCe.png. Zooming in function does not work. I tried the workaround but it has only helped marginally. This appears

[Rails] Programmatically copying ActiveModel validators from one model to another?

2014-04-26 Thread John Feminella
I'm writing a library that will require programmatically copying validations from one model to another, but I'm stumped on how to pull this off. I have a model that is an `ActiveModel::Model` with some validation: class User ActiveRecord::Base validates :name, presence: true end

[Rails] Ability for users to insert images into text area

2014-04-26 Thread Colin Stodd
So like many other beginners in Rails I'm following along to Michael Hartl's tutorial. I'm nearing the end, and I'm thinking I would like to implement the ability for users (in the social network) to upload pics along with their comments and maybe even add a text editor type thing (not sure

[Rails] Re: Rspec testing in rails3

2014-04-26 Thread Frederick Cheung
On Saturday, April 26, 2014 4:09:15 PM UTC+1, Ruby-Forum.com User wrote: How do I test this in Rspec. I am pretty very new to Rspec. Please help. I tried like the below describe next do it routes /queues/:queue_id/next do { :get = /queues/regular_queue/next }.should

[Rails] Re: Rspec testing in rails3

2014-04-26 Thread ruby rails
Frederick Cheung wrote in post #1144184: On Saturday, April 26, 2014 4:09:15 PM UTC+1, Ruby-Forum.com User wrote: :format = json ) assigns(:queue).should_not be_nil expect(response).to be_success end But it is not at all coming inside my next

Re: [Rails] Having trouble overriding bootsrap-sass Gem css with GMaps API accesssed through Gmaps4Rails Gem

2014-04-26 Thread Andrei G
On 26 Apr 2014, at 19:02, Jim Whittaker li...@ruby-forum.com wrote: I am following the Gmaps4Rails tutorial and trying to implement it in a bootstrap framework, but am having problems. The map won't load correctly... See here: http://i.imgur.com/qMiczCe.png. Zooming in function does not

[Rails] Re: Having trouble overriding bootsrap-sass Gem css with GMaps API accesssed through Gmaps4Rails Gem

2014-04-26 Thread Jim Whittaker
div class=google-maps div style='width: 800px;' div id=map style='width: 800px; height: 400px;'/div /div /div I just tried this, again no luck :( -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] Ruby on Rails 4.1 - Random SWF backgrounds in layout

2014-04-26 Thread Kazuna Nakama
Hi Everyone, this is my first post on Ruby on Rails, I've managed to get up and running with Rails 4.1 on FreeBSD with Nginx and Ruby 2.1.1. My issue is this: I have a folder located at /public/swf/ that contains numerous swf files I want to load as a background for every page of my site.

[Rails] Best {JOB] EVER in Greenwich, CT - To $125 per hour for 12 months

2014-04-26 Thread Justin Wright
I have a Greenwich, CT client looking for a Ruby on Rails Developer for a 1-year contract engagement with a 99.99% chance of extension. You could do this job one-handed in a club (think Pacha or Marquee) standing right in front of the speaker while scantily-clad go-go girls provocatively gyrate

Re: [Rails] Best {JOB] EVER in Greenwich, CT - To $125 per hour for 12 months

2014-04-26 Thread femto Zheng
shooting the star. On Sat, Apr 26, 2014 at 10:17 AM, Justin Wright justinwright...@gmail.com wrote: I have a Greenwich, CT client looking for a Ruby on Rails Developer for a 1-year contract engagement with a 99.99% chance of extension. You could do this job one-handed in a club (think Pacha or

[Rails] Float as ID's? Can not query on them

2014-04-26 Thread tekram
I have set my float id's. I have a Rails 3.0 app and using a MySQL database. It seemed to work fine on a Postgres database. Here is my problem: irb(main):033:0 Patient.first *Patient Load (1.3ms)* SELECT `patients`.* FROM `patients` LIMIT 1 = #Patient pid: 29312000.0, created_at: