Re: [Rails] rails update fails

2010-09-10 Thread Christiaan Van den Poel
If is it only during the installation of the ri documentation, you shouldn't worry about it. if you do a 'gem list' you can see all the installed gems. On Thu, Sep 9, 2010 at 10:21 PM, Robin robinmalmquis...@gmail.com wrote: I'm doing a manual (initial) installation of ruby 1.8.7, rubygems

Re: [Rails] safe nil in rails views.

2010-09-10 Thread Christiaan Van den Poel
user.presence || see http://rubydoc.info/docs/rails/3.0.0/Object:presence On Fri, Sep 10, 2010 at 10:25 AM, Mauro mrsan...@gmail.com wrote: If you know grails, there is a feature like this: % user.name? % that prevents to chek if the value is null or not. In rails view I have to do % if

[Rails] Rails3: jquery-rails gem sets 'config.action_view.javascript_expansions' but cannot be overriden in 'config/application.rb'

2010-09-09 Thread Christiaan Van den Poel
Hello, I've created a new Rails3 app and I'm using jQuery instead of prototype. Gemfile: gem 'jquery-rails' in my config/application.rb I want do the following: config/application.rb if Rails.env.production? config.action_view.javascript_expansions[:defaults] = %w(jquery.min rails

Re: [Rails] Re: Custom default form builder in Rails 3

2010-06-24 Thread Christiaan Van den Poel
My mistake then, sorry for that. So when you do a require 'your/module' in the application.rb doesn't this works? On Wed, Jun 23, 2010 at 3:22 PM, regnever sher...@gmail.com wrote: evnironment.rb file doesn't contain any config instance or local variable. Edge rails documentation (Rails

Re: [Rails] Custom default form builder in Rails 3

2010-06-23 Thread Christiaan Van den Poel
I gueuss it's due to the fact your 'lib/mymodule/mybuilder.rb' isn't required yet, do this in the config/environment.rb where you have the line: config.action_view.default_form_builder = Mymodule::Mybuilder C+++ On Wed, Jun 23, 2010 at 1:39 PM, regnever sher...@gmail.com wrote: Hello