[Rails] Weird gem issues

2014-08-09 Thread Mike Rood
I have created many rails projects successfully on Windows and OSX over the past 8 years or so. I'm trying to create my first project on CentOS and I'm getting the strangest errors. I have installed rails 4.1.4 and rake 10.3.2. *rake -v* returns: Could not find gem 'rails (= 4.1.4) ruby'

Re: [Rails] How avoid concurrency belongs_to and has_many association?

2014-08-09 Thread Walter Lee Davis
On Aug 9, 2014, at 3:22 AM, Ricardo do Valle wrote: > How do I avoid concurrency and keep the data integrity if one user submit a > form before the other? > > My issue is that the last user to submit the person/_form.rb will get all > chosen cards, same the cards that first user chose and I wa

[Rails] will_paginate edit first page

2014-08-09 Thread Evgeniy Shurmin
Could you look at kaminari gem. It is more flexible and allows you change everything. -- 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+un

[Rails] How avoid concurrency belongs_to and has_many association?

2014-08-09 Thread Ricardo do Valle
How do I avoid concurrency and keep the data integrity if one user submit a form before the other? My issue is that the last user to submit the person/_form.rb will get all chosen cards, same the cards that first user chose and I want to prohibit that. # person.rb class Person < ActiveRec