Re: [Rails] Re: Rails migration fault

2016-02-05 Thread Colin Law
On 5 February 2016 at 13:58, Yuri Redaelli wrote: > In order to fix what showed during RVM INFO I needed to move this line > > [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # > Load RVM into a shell session *as a function* > > at the bottom of my

[Rails] Percentage Calculation

2016-02-05 Thread John Sanderbeck
I am new to Ruby (and probably more Rails for this) and am trying to figure out how to do this calculation efficiently. What I have is a Training table In the training table, I have a HABTM relationship with trainers What I am trying to do is get the percentage of each training a trainer

Re: [Rails] Rails migration fault

2016-02-05 Thread Colin Law
On 5 February 2016 at 09:43, Yuri Redaelli wrote: > Hi all, > > for first sorry for my english. > > I'm trying to create a Rails migration but I encouter this error: > > .rvm/gems/ruby-1.9.3-p327@global/gems/json-1.8.0/lib/json/common.rb:67: > [BUG] Segmentation fault > ruby

[Rails] Rails migration fault

2016-02-05 Thread Yuri Redaelli
Hi all, for first sorry for my english. I'm trying to create a Rails migration but I encouter this error: .rvm/gems/ruby-1.9.3-p327@global/gems/json-1.8.0/lib/json/common.rb:67: [BUG] Segmentation fault ruby 2.0.0p645 (2015-04-13 revision 50299) [universal.x86_64-darwin15] -- Crash Report log

[Rails] Re: Rails migration fault

2016-02-05 Thread Yuri Redaelli
Colin Law wrote in post #1181203: > On 5 February 2016 at 09:43, Yuri Redaelli wrote: >> Hi all, >> >> for first sorry for my english. >> >> I'm trying to create a Rails migration but I encouter this error: >> >>

[Rails] Re: Rails migration fault

2016-02-05 Thread Yuri Redaelli
Is it correct to have a config like this? RubyGems Environment: - RUBYGEMS VERSION: 2.0.14 - RUBY VERSION: 2.0.0 (2015-04-13 patchlevel 645) [universal.x86_64-darwin15] - INSTALLATION DIRECTORY: /Users/myname/.rvm/gems/ruby-1.9.3-p327@global - RUBY EXECUTABLE:

Re: [Rails] Re: Rails migration fault

2016-02-05 Thread Colin Law
On 5 February 2016 at 11:47, Colin Law wrote: > On 5 February 2016 at 10:55, Yuri Redaelli wrote: >> Colin Law wrote in post #1181203: >>> On 5 February 2016 at 09:43, Yuri Redaelli wrote: Hi all, for first sorry for

[Rails] Re: Re: Rails migration fault

2016-02-05 Thread Yuri Redaelli
Colin Law wrote in post #1181211: > On 5 February 2016 at 11:47, Colin Law wrote: > [BUG] Segmentation fault show (is 'which ruby' the right command on OSX for findinq which >>> which ruby >>> /usr/bin/ruby >> >> You are using the wrong ruby. Since you are using rvm

Re: [Rails] Re: Re: Rails migration fault

2016-02-05 Thread Colin Law
On 5 February 2016 at 12:02, Yuri Redaelli wrote: > Colin Law wrote in post #1181211: >> On 5 February 2016 at 11:47, Colin Law wrote: >> [BUG] Segmentation fault > show (is 'which ruby' the right command on OSX for findinq which which ruby

Re: [Rails] Re: Rails migration fault

2016-02-05 Thread Colin Law
On 5 February 2016 at 10:55, Yuri Redaelli wrote: > Colin Law wrote in post #1181203: >> On 5 February 2016 at 09:43, Yuri Redaelli wrote: >>> Hi all, >>> >>> for first sorry for my english. >>> >>> I'm trying to create a Rails migration but I encouter

[Rails] Re: Rails migration fault

2016-02-05 Thread Yuri Redaelli
In order to fix what showed during RVM INFO I needed to move this line [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* at the bottom of my bash_profile See this topic

[Rails] Re: Rails migration fault

2016-02-05 Thread Yuri Redaelli
Ok, thanks for your support. -- 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 it, send an email to

Re: [Rails] Developing a social networking site; acts_as_votable (aka acts_as_likeable)

2016-02-05 Thread fugee ohu
On Friday, February 5, 2016 at 1:42:27 AM UTC-5, nanaya wrote: > > Sorry, wrong link. > > On Fri, Feb 5, 2016, at 15:33, nanaya wrote: > > It's already doing exactly that. Check the respond_to[1] line at the top > > of the controller and the corresponding views[2]. > > > > [1] > > >