[Rails] Looking for benchmarks between Rails versions (2.3, 3.x, 4.0)

2013-06-30 Thread Geoffrey Roguelon
Hi, I'm looking for some benchmarks between the different versions of Ruby on Rails to show the benefits to migrate to Rails 4. If anyone, have articles about this topic, i'm interested. Thanks. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk

[Rails] Re: has_secure_password: authenticate method

2013-06-30 Thread Geoffrey Roguelon
Hi, Q1: The goal is to return the current object with 'self'. When, you try in irb => 'a' && 'b', Ruby returns you 'b', because is the last non nil object but when the password comparaison failed, it the comparaison value which is returned, thus 'false'. Q2: According to my interpretation, the

Re: [Rails] problem with git push heroku

2013-06-30 Thread Annapoorna R
m done with that this is for the second deployment with updated code... On Mon, Jul 1, 2013 at 11:33 AM, saikiran mothe wrote: > Hi, > > > https://devcenter.heroku.com/articles/rails3#deploy-your-application-to-heroku > > > Just follow the steps mentioned there.' > > Thanks, > Sai > > > On Mon,

Re: [Rails] problem with git push heroku

2013-06-30 Thread saikiran mothe
Hi, https://devcenter.heroku.com/articles/rails3#deploy-your-application-to-heroku Just follow the steps mentioned there.' Thanks, Sai On Mon, Jul 1, 2013 at 11:27 AM, Annapoorna R wrote: > using rails 3.2.13 ruby 1.9.3, > > git push heroku > Everything up to date > > heroku open > Applicat

[Rails] problem with git push heroku

2013-06-30 Thread Annapoorna R
using rails 3.2.13 ruby 1.9.3, git push heroku Everything up to date heroku open Application Error An error occurred in the application and your page could not be served. Please try again in a few moments. If you are the application owner, check your logs for details. heroku logs 2013-07-01T05

Re: [Rails] Re: oauth works manually or by before_filter but not going to /sign_in

2013-06-30 Thread Jordon Bedwell
On Sun, Jun 30, 2013 at 7:25 PM, Dave Aronson wrote: > My subconscious put together something I had seen on OAuth not liking > JavaScript-submitted credentials, and the fact that Rails 4 uses > Turbolinks by default. Adding "'data-no-turbolink' => true" to the > link_to makes it work! Yy! I

[Rails] Re: oauth works manually or by before_filter but not going to /sign_in

2013-06-30 Thread Dave Aronson
AHA! My subconscious put together something I had seen on OAuth not liking JavaScript-submitted credentials, and the fact that Rails 4 uses Turbolinks by default. Adding "'data-no-turbolink' => true" to the link_to makes it work! Yy! I'm reporting this in case anyone else comes across the s

[Rails] oauth works manually or by before_filter but not going to /sign_in

2013-06-30 Thread Dave Aronson
My app currently has two ways a user can sign in using OAuth via Github: - Click a button to read something protected. This triggers a before_filter called authorize, which says: authorize_github_and_return_to request.url unless signed_in? This way works just fine (though using the same t

[Rails] Re: Color sequence on Rails console in Windows

2013-06-30 Thread Dwi Wahyudi
i am using conemu. it will correctly shows you the color... after installation, go to settings, integration and register for context menu integration after that you can open any dir with conemu you can also set its window transparency On Sunday, June 30, 2013 3:28:19 PM UTC+7, Ruby-Forum.com U

[Rails] rails 4 openid problem

2013-06-30 Thread Ilya Ishmatov
Hi. After update in Gemfile rails gem from 3.2.6 to 4.0.0. Registration by openid not working. Log from console: I, [2013-06-30T17:56:33.632030 #23279] INFO -- OpenID: Error attempting to use stored discovery information: OpenID::TypeURIMismatch I, [2013-06-30T17:56:33.632142 #23279] INFO -

[Rails] rake db:create giving undefined method `[]' for nil:NilClass

2013-06-30 Thread Dipanjan Patranavis
My ruby version is 1.8.7 I have installed mysql-essential-5.0.90-win32 and using Fedena 2.3.5 List of all gems installed:* columnize (0.3.6) declarative_authorization (0.5.1) fattr (2.2.1) ffi (1.9.0) gem_plugin (0.2.3) highline (1.6.19) i18n (0.4.2) metaclass (0.0.1) mime-types (1.23) mocha (0.14

[Rails] ruby on rails couldn't find file 'jquery.ui.all'

2013-06-30 Thread brad sumrall
couldn't find file 'jquery.ui.all' which is a known issue, I added *=require jquery.ui.all to application.css and //= require jquery.ui.all to application.js but still get the error. http://bpaste.net/show/1RqTDUte2XLBoj8fdTbf/ Sprockets::FileNotFound in Preorder#index Showing /var/www/loc

[Rails] Multiple nested attributes of the same type

2013-06-30 Thread pootzko cmik
Hi all, 0 down vote favorite I have two models - "symbols" and "users". Among other attributes, symbols has "created_by_id" and "updated_by_id" attributes which are id's of users that created/updated a certain symbol entry. Let's say I want to display the symbols table with their "symbol" attr

Re: [Rails] Sidekiq on Heroku

2013-06-30 Thread Jordon Bedwell
On Sun, Jun 30, 2013 at 10:59 AM, Linus Pettersson wrote: > So, I'm using Heroku and wonder if I need to use a separate worker dyno for > these jobs? Or can I use, for example, Unicorn to run Sidekiq "inside" my > one web dyno? You can, but it's not recommended. > I read something about it here:

Re: [Rails] rubyXL error - uninitialized constant RubyXL (NameError)

2013-06-30 Thread Norbert Melzer
Am Sun, 30 Jun 2013 08:48:48 -0700 (PDT) schrieb Muthu Selvan : > *Norbert Melzer >>* Install rubyXL without sudo > Muthu Selvan >> gem install rubyXL > Fetching: rubyXL-1.2.10.gem (100%) > Successfully installed rubyXL-1.2.10 > 1 gem installed > > *ERROR :* > * > * > *$ rvm use jruby > * > *Us

[Rails] Sidekiq on Heroku

2013-06-30 Thread Linus Pettersson
Hi I want to use Sidekiq to run some jobs in the background. The jobs will be created by the whenever gem (or similar) which creates a Sidekiq worker at a specific time. This worker will in turn create a few hundred Sidekiq jobs. So, I'm using Heroku and wonder if I need to use a separate worke

Re: [Rails] rubyXL error - uninitialized constant RubyXL (NameError)

2013-06-30 Thread Muthu Selvan
Please find the answer as in below .. *Norbert Melzer >>* What is RVM Version ? *Muthu Selvan >>* $ rvm version *rvm 1.20.13* (stable) by Wayne E. Seguin , Michal Papis [https://rvm.io/] *Norbert Melzer >>* Install rubyXL without sudo Muthu Selvan >> gem install rubyXL Fetching: rubyXL-1.2

[Rails] Re: forgery protection for multiple browser tabs

2013-06-30 Thread Martin Luy
In some situations a new session was created because the user was logging in/out. Could I copy the old CSRF-token into the new session, or would there be any security leak? In other cases the user was not logging in/out and didn't get a new session. Maybe the page was cached in the browser, so

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

2013-06-30 Thread Joel Pearson
There's a quick guide on how to install Sqlite3 on Windows 7 here: http://www.ruby-forum.com/topic/4413168 I followed the instructions on there, and after a few minor tweaks, I managed to get it working. I've tried to attach a zip with the necessary files in. Hopefully if you can download that

[Rails] Color sequence on Rails console in Windows

2013-06-30 Thread kei koba
I has installed rails in Windows 7 by RailsInstaller (railsinstaller.org). When I use rails console, color sequence appears rawly and text colors are not changed. How to fix the problem? Attachments: http://www.ruby-forum.com/attachment/8551/rails.jpg -- Posted via http://www.ruby-forum.com/.

Re: [Rails] rubyXL error - uninitialized constant RubyXL (NameError)

2013-06-30 Thread Norbert Melzer
2013/6/30 Muthu Selvan > *sudo gem install rubyXL* -> *EMPTY RESULT * > This line makes me assume, that you use a system ruby and no version manager… > * > * > *So installed rubyXL with the below command ...* > * > * > Fetching: rubyXL-1.2.10.gem (100%) > Successfully installed rubyXL-1