[Rails] Re: Passing instance variable to js.erb

2013-09-17 Thread Minh Quy
you should not use js with erb, it meet serious problem when you change variable rails without change js. You can use client variable gem, checkout more details https://github.com/Coffa/client_variable On Thursday, February 16, 2012 12:09:47 PM UTC+7, Ruby-Forum.com User wrote: Rails 3.1.3

[Rails] Looking for best tutorial for someone brand new to this type of programming

2013-09-17 Thread Andante
I've had years and years of experience with programming, but it's all been with the old Excel macro language. I can make it do back-flips, but I've never had a need to learn any of the more modern languages. I now have a great reason to learn Ruby on Rails, and would like to find a tutorial.

[Rails] On Screen Expert - Rails help

2013-09-17 Thread Gideon Jadlovker
Hey Guys, My co-founderhttps://onscreenexpert.com/expert_profiles/lev-berlin?query=levand I https://onscreenexpert.com/expert_profiles/gideon-jadlovker?query=gideon are planing to be on OnScreenExpert http://www.OnScreenExpert.com for the next 2 hours or so (Till 7PM EDT) and provide Rails

[Rails] Rails 4 deprecation of in-place edit methods for collection associations

2013-09-17 Thread George Georgiev
Hi everyone! For those of you who are not noticed the in-place edit method for collection associations are broken in the current rails release - 4.0.0, and here's what is cooking in the rails master https://github.com/rails/rails/commit/1a40be02113287d9a003f8224e91b9f623857f4b and this

Re: [Rails] Translate tag (I18n.t) in ruby on rails not having CSS formatting applied

2013-09-17 Thread Frederick Cheung
On Monday, September 16, 2013 3:29:37 PM UTC+1, trekr67 wrote: The problem is that the CSS formatting for the translated part is contained in the p tag and that's what I'd like preserved. Or would you suggest creating a new tag for the translated text in the CSS file with the same

Re: [Rails] RVM Path issue when I run RVM -V

2013-09-17 Thread Colin Law
On 17 September 2013 04:56, Chris Kuffo li...@ruby-forum.com wrote: Hello - Hoping someone can help with this issue. Everytime i run rvm -v i receive this error. Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-1.9.3-p392/bin' is not at first place, usually this is caused by

Re: [Rails] RVM Path issue when I run RVM -V

2013-09-17 Thread Colin Law
On 17 September 2013 08:06, Colin Law clan...@googlemail.com wrote: On 17 September 2013 04:56, Chris Kuffo li...@ruby-forum.com wrote: Hello - Hoping someone can help with this issue. Everytime i run rvm -v i receive this error. Warning! PATH is not properly set up,

Re: [Rails] Looking for best tutorial for someone brand new to this type of programming

2013-09-17 Thread Colin Law
On 16 September 2013 23:28, Andante evenyoucanp...@gmail.com wrote: I've had years and years of experience with programming, but it's all been with the old Excel macro language. I can make it do back-flips, but I've never had a need to learn any of the more modern languages. I now have a

Re: [Rails] RVM Path issue when I run RVM -V

2013-09-17 Thread Michał Papis
Change this line: export PATH=$PATH:/usr/local/rvm/

[Rails] Re: Looking for best tutorial for someone brand- new to this type of programming

2013-09-17 Thread Joel Pearson
If you're coming from VBA you'll probably need to brush up on your Object Oriented Programming as well. http://www.tutorialspoint.com/ruby/ruby_object_oriented.htm -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on

Re: [Rails] RVM Path issue when I run RVM -V

2013-09-17 Thread Norbert Melzer
Please read the error messages and LOOK at your path variables, not only copy and paste them. Reading and understanding error messages can help save time pretty often... Am 17.09.2013 05:56 schrieb Chris Kuffo li...@ruby-forum.com: Hello - Hoping someone can help with this issue. Everytime i

[Rails] Rails 4 - undefined method build in using strong parameters

2013-09-17 Thread Erwin
In my backoffice/users_controller.rb , I wrote a class to build the permitted parameters class Backoffice::UsersController ApplicationController class UserParams def build params params.require(:user).permit(:email, :password, :password_confirmation ) end

Re: [Rails] Rails 4 - undefined method build in using strong parameters

2013-09-17 Thread Colin Law
On 17 September 2013 18:27, Erwin yves_duf...@mac.com wrote: In my backoffice/users_controller.rb , I wrote a class to build the permitted parameters class Backoffice::UsersController ApplicationController class UserParams def build params If you want a class method (rather

Re: [Rails] Passing instance variable to js.erb

2013-09-17 Thread Tamara Temple
Not as old a message as I've responded to, but this one was from February of 2012… On Sep 16, 2013, at 9:26 AM, Minh Quy sugiacu...@gmail.com wrote: you should not use js with erb, it meet serious problem when you change variable rails without change js. You can use client variable gem,

[Rails] CSS Sass not loading at all on some pages

2013-09-17 Thread Shaban K.
Hi, I've installed the bootstrap-sass gem and I am finding the css works on some pages displaying the styling and not on other pages, which I am not sure why this is.Using google chromes dev tools I can see that none of the CSS files are loaded for the page. I have run rake assets clean and

[Rails] Re: RVM Path issue when I run RVM -V

2013-09-17 Thread Lemuel Formacil
'/usr/local/rvm/gems/ruby-1.9.3-p392/bin' is not at first place export

[Rails] Re: Unable to override methods built with alias_method_chain

2013-09-17 Thread Frederick Cheung
On Tuesday, September 17, 2013 8:59:06 PM UTC+1, Ruby-Forum.com User wrote: The method created with alias_method_chain is never affected! My code successfully overrides 'native_plugin_method', but it seems to do nothing with rewrite_with_subdomains, even though everything is identical.

[Rails] Unable to override methods built with alias_method_chain

2013-09-17 Thread masta Blasta
I am using this plugin and trying to extend it: https://github.com/goncalossilva/subdomain_routes/blob/master/lib/subdomain_routes/url_writer.rb The plugin heavily modifies some the Rails routing (Rails 2.3.x in this case, but that's not important) It usually follows this pattern: module

[Rails] Re: Looking for best tutorial for someone brand new to this type of programming

2013-09-17 Thread Andante
No, I'm actually not coming from VBA. I've been using the original Excel macro language that's even older. But since it is *not* object-oriented, I need to wrap my head around that as well. Thanks to you both for the ideas. Any others out there? -- You received this message because you are

[Rails] overriding view page in core module through rails plugin

2013-09-17 Thread ruby rails
Hi, I have a rails2.3 application and I have a requirement to override one of the view in the core module through plugin. In the core module view page, there is a text area to type the message. Now the requirement is to make it as like nicedit, redactor so that the message can be formatted. So I

Re: [Rails] Rails 4 - undefined method build in using strong parameters

2013-09-17 Thread Erwin
Thanks Colin... changed to : private def user_params params.require(:user).permit(:email, :password, :password_confirmation ) end and cretae /update... def create @user = User.new(user_params) Le mardi 17 septembre 2013 19:31:43 UTC+2, Colin Law a écrit : On 17