[Rails] tar2rubyscript and rubyscript2exe for rails 3.x

2013-09-17 Thread Victor Antony
Hi, Greetings to all.! I have successfully created executable files for rails 2.x with ruby 1.8.x . Followed the tutorial: http://www.erikveen.dds.nl/distributingrubyapplications/rails.html How can I do this f

[Rails] Re: initializing rails server from irb

2013-09-17 Thread Victor Antony
On Monday, September 2, 2013 7:59:18 PM UTC+5:30, Michael Lutsiuk wrote: > > *In irb* > 1. => require 'rails/commands/server' > 2. => Rails::Server.start > > On Monday, September 2, 2013 3:28:34 PM UTC+3, Victor Antony wrote: >> >> >> Hi Greetings..! >> >> I have learned and tested *initializ

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 Septem

[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 n

[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 s

[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 Subdo

[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 > identi

[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 PATH=/usr/local/rvm/gems/ruby-1.9.3-p392/bin:/usr/local/rvm/gems/ruby-1.9.3-p392@global/bin:/usr/local/rvm/rubies/ruby-1.9.3-p392/bin:/usr/local/rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/sm/bin:/opt/sm/p

[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 preco

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 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, checkout > more detail

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

2013-09-17 Thread Colin Law
On 17 September 2013 18:27, Erwin 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 than instance)

[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] 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" : > Hello - Hoping someone can help with this issue. Everytime i run rvm -v > i recei

[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 Ra

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/ gems/ruby-1.9.3-p392/bin:/usr/local/rvm/gems/ruby-1.9.3-p392@global/bin:/usr/local/rvm/rubies/ruby-1.9.3-p392/bin:/usr/local/rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/sm/bin:/opt/sm/pkg/active/bin:/usr/local/bin:/opt/sm/pkg/active

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 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 great reason to learn Ru

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

2013-09-17 Thread Colin Law
On 17 September 2013 08:06, Colin Law wrote: > On 17 September 2013 04:56, Chris Kuffo 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 firs

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

2013-09-17 Thread Colin Law
On 17 September 2013 04:56, Chris Kuffo 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 shell initializa