Re: [Rails] model association

2015-03-02 Thread Colin Law
On 2 March 2015 at 17:24, Palmo sandro.palmi...@sportsenzafrontiere.it wrote: Hi, I've generated 2 models (Player and Trainer) with the generate scaffold command with the following tables: Player name:string last_name:string trainer:string team:string Trainer name:string

[Rails] [ANN] Rails 4.2.1.rc3 and 4.1.10.rc3 have been released!

2015-03-02 Thread Rafael Mendonça França
Hi everyone, I am happy to announce that Rails 4.2.1.rc3 and 4.1.10.rc3 have been released. There were found some regressions in the last release candidates so, following release process we are releasing new release candidates. If no regressions are found expect the final release this Thursday,

[Rails] Is there way to mark Rails scope as loaded (and pass it the records array) to avoid extra db calls?

2015-03-02 Thread Eugene Gilburg
I have a method which returns an array of records which I can't keep as a pure scope because I need to do complex in-memory filtering not easy with pure SQL. accounts = current_user.accounts.select {|a| a.some_complex_method } But I need to be able to scope-chain it for other purposes later,

[Rails] Re: Rails gsoc 2015

2015-03-02 Thread Ferdinand Rosario
Hi, I hope this might be helpful for you https://github.com/railsgsoc/ideas/wiki/2015-Ideas https://github.com/jruby/jruby/wiki/Google-Summer-of-Code-2015 also please get try to get in touch with Arthur Neves(@arthurnn) https://twitter.com/arthurnn/status/572085221476048899 On Thursday,

[Rails] model association

2015-03-02 Thread Palmo
Hi, I've generated 2 models (Player and Trainer) with the generate scaffold command with the following tables: *Player* name:string last_name:string trainer:string team:string *Trainer* name:string last_name:string phone_number:string team:string I've set the association in the Player model

[Rails] Re: Re: Ajax 404 not found

2015-03-02 Thread Simioni Tanguy
Does that restart your rails server? I don't know. Does it work in development mode on your development system? Colin it does restart my rails server , but et doesn't work in development mode on y development system. and here is my routes.rb WebGTI::Application.routes.draw do root :to

[Rails] Re: Ajax 404 not found

2015-03-02 Thread Simioni Tanguy
i changed 2 thinks , i declare my function on the top of my admin_controller.rb file and change the camelcase to archivemail. i don't know wath solve the problem , but it work ! thank you really much for your help !! Tanguy -- Posted via http://www.ruby-forum.com/. -- You received this

[Rails] Re: Ajax 404 not found

2015-03-02 Thread Simioni Tanguy
Colin Law wrote in post #1169453: Please in future copy/paste the relevant code rather than using a screenshot. It is much easier for us to read, especially on mobile devices. Are you running in production mode, if so have you restarted the server since any changes made? What is in the

Re: [Rails] Re: Ajax 404 not found

2015-03-02 Thread Colin Law
On 2 March 2015 at 13:43, Simioni Tanguy li...@ruby-forum.com wrote: Colin Law wrote in post #1169453: Please in future copy/paste the relevant code rather than using a screenshot. It is much easier for us to read, especially on mobile devices. Are you running in production mode, if so

Re: [Rails] Re: Re: Ajax 404 not found

2015-03-02 Thread Colin Law
On 2 March 2015 at 14:22, Simioni Tanguy li...@ruby-forum.com wrote: Does that restart your rails server? I don't know. Does it work in development mode on your development system? Colin it does restart my rails server , but et doesn't work in development mode on y development system.

[Rails] question @ ransack

2015-03-02 Thread tom
hi, switching from metasearch to ransack and not sure how to do this: @q = Person.ransack(params[:q]) #filter more @q = @q.id_eq(test) if current_user # how do i make this work? @people = @q.result(distinct: true) -- You received this message because you are subscribed to the Google Groups

[Rails] Ajax 404 not found

2015-03-02 Thread Simioni Tanguy
hi everyone, i'm trying to make a post request with ajax in a js function. but here i am , 404 error , i really don't get why , help :3 Attachments: http://www.ruby-forum.com/attachment/10551/bug.png -- Posted via http://www.ruby-forum.com/. -- You received this message because you are

Re: [Rails] Ajax 404 not found

2015-03-02 Thread Scott Ribe
On Mar 2, 2015, at 6:19 AM, Simioni Tanguy li...@ruby-forum.com wrote: hi everyone, i'm trying to make a post request with ajax in a js function. but here i am , 404 error , i really don't get why , help :3 Look in the logs, inspect your actual request, compare it to your routes. (In

Re: [Rails] Ajax 404 not found

2015-03-02 Thread Colin Law
On 2 March 2015 at 13:19, Simioni Tanguy li...@ruby-forum.com wrote: hi everyone, i'm trying to make a post request with ajax in a js function. but here i am , 404 error , i really don't get why , help :3 Attachments: http://www.ruby-forum.com/attachment/10551/bug.png Please in future

[Rails] tags in post and comment

2015-03-02 Thread Selvag Ruby
Hi Rubiest, I've created a Sample Facebook app, (i.e) Post and comment. I've done and I need to tagging feature here. Assist me to build my ideas. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group.

Re: [Rails] Re: Re: Ajax 404 not found

2015-03-02 Thread Colin Law
On 2 March 2015 at 15:18, Simioni Tanguy li...@ruby-forum.com wrote: Colin Law wrote in post #1169465: Did you move it from after a private declaration? Actions need to be in public section. after check , it was in private declaration , i'm learning ruby and didn't know private

Re: [Rails] Re: Ajax 404 not found

2015-03-02 Thread Colin Law
On 2 March 2015 at 14:49, Simioni Tanguy li...@ruby-forum.com wrote: i changed 2 thinks , i declare my function on the top of my admin_controller.rb file and change the camelcase to archivemail. i don't know wath solve the problem , but it work ! Well you should find out which for future

[Rails] Re: Re: Ajax 404 not found

2015-03-02 Thread Simioni Tanguy
Colin Law wrote in post #1169465: Did you move it from after a private declaration? Actions need to be in public section. after check , it was in private declaration , i'm learning ruby and didn't know private declaration was for all function declare after private key word. Again think