[Rails] Login Problem

2013-09-26 Thread Avi
Hello All, I am getting a problem while login for inactive users. While login I am getting - Processing by Devise::SessionsController#new as HTML User Load (0.7ms) SELECT users.* FROM users WHERE users.id = 2 LIMIT 1 Redirected to http://localhost:3000/ Filter chain halted as

[Rails] SHA1 and Carrierwave duplicate image test

2013-09-26 Thread Dave Castellano
Hi, I am using Carrierwave in my Rails 3.x app along with Fog to store images on S3. I am trying to prevent uploading of duplicate images. I am a novice programmer and would appreciate any suggestions. This is my approach: 1. Upload file using carrierwave. class ImageUploader

[Rails] Production quality Rails 4 chat demo?

2013-09-26 Thread Paul
Hi Everyone, I'm trying to use Rails 4's ActionController::Live functionality to do a chat-like interface in my app. I've found a number of blog posts, all of which seem to be based on Aaron Patterson's original one here: http://tenderlovemaking.com/2012/07/30/is-it-live.html Has anyone here

[Rails] Re: Differentiate Client browser http call

2013-09-26 Thread Robert Walker
Avi wrote in post #1122484: Hello All, How can I differentiate the call between client ios app browser call? session_controller - create method is being used by both client rails web application. I want to restrict for web application to use create method. how can I achieve this?

[Rails] What am I missing? Finished setting up Rails environment.

2013-09-26 Thread Phil Boyce
I'm using DigitalOcean as my hosting provider as I have some simple sites there. I thought I'd try to setup rails on a domain there to see what I could accomplish. OS: Ubuntu 12.04 x32 Rails: 4.0.0 Ruby: 2.0.0p247 nginx: 1.1.19 MariaDB:10.0.4 Passenger: 4.0.19

[Rails] Devise Invitable and Validations -- what's the right way to do this?

2013-09-26 Thread Walter Lee Davis
Rails 3.2.14, Ruby 1.9.3, devise_invitable 1.1.8 I am trying to get invitations containing custom fields to validate their contents properly. I have tried the invite_keys hash route, as documented here: https://github.com/scambra/devise_invitable#model-configuration and unless I am doing

[Rails] Rails Misconfigured - Missing Welcome Page

2013-09-26 Thread Phil Boyce
I'm using DigitalOcean as my hosting provider as I have some simple sites there. I thought I'd try to setup rails on a domain there to see what I could accomplish. OS: Ubuntu 12.04 x32 Rails: 4.0.0 Ruby: 2.0.0p247 nginx: 1.1.19 MariaDB:10.0.4 Passenger: 4.0.19

Re: [Rails] Rails Misconfigured - Missing Welcome Page

2013-09-26 Thread Norm Scherer
Using passenger I would assume you are using a virtual host. Do you have that virtual host defined in your dns or etc/hosts? Are you addressing the virtual host by name? It would be expected that you would just see the nginx default page if you are going to your assigned host name. Norm

Re: [Rails] Rails Misconfigured - Missing Welcome Page

2013-09-26 Thread Walter Lee Davis
On Sep 26, 2013, at 1:55 PM, Phil Boyce wrote: I'm using DigitalOcean as my hosting provider as I have some simple sites there. I thought I'd try to setup rails on a domain there to see what I could accomplish. OS: Ubuntu 12.04 x32 Rails: 4.0.0 Ruby: 2.0.0p247 nginx:

[Rails] Problems with ActionMailer

2013-09-26 Thread steve ross
I'm having a tough time tracking down why my mail is not being sent from an app I migrated from 3.0 - 3.1 - 3.2. The relevant code sections are in this SO question. My questions here are: 1) Does something just jump out as wrong in my setup? 2) How would you track this down. All my specs pass

[Rails] find total months passed between two ActiveSupport::TimeWithZone objects

2013-09-26 Thread John Merlino
unit.created_at.class = ActiveSupport::TimeWithZone Time.zone.now.class = ActiveSupport::TimeWithZone Time.zone.now - unit.created_at = 47709736.32316899 I think that's the number of seconds that have passed between when the unit was created and the current time. Is this correct? If

[Rails] Fetch the user albums and photos

2013-09-26 Thread Fahad Idrees
Hi, I am using omni-auth for the user authentication and logged in the user via access token. But like facebook i want to fetch the user profile information and all the albums he/she uploaded and images belongs to that albums, than save the public url to my own database. I found fb_graph a very

[Rails] show.html.erb and html tags

2013-09-26 Thread baron visi
Hi there. I have a problem about accessing posts/show.html.erb i can listing all posts on index.html.erb but when i try to access any post html tags are not shown in show.html.erb, like images. -- Controller class PostsController ApplicationController before_action