ruby-on-rails3

rails3 generator loading

I am working on creating a rails3 generator that integrates with the existing model generator so that if I use --orm=data_mapper and have it generate a data mapper model instead of an activerecord model. This I have done successfully. I have created a generate that will generate the data mapper model. The problem comes when I try to p...

What can I expect as the core stack for Rails 3.0 and what will I need to include now as a plugin

So Rails and Merb are sort of merging in Rails 3.0? Thats how its been described to me anyway. This means that a lot of what made Rails, Rails will now be moved to plug-ins so that it can be more lightweight. HOwever, what are those plug-ins going to be and as a new Rails developer, what are THE must have - and also more mature - plug-in...

How rspec works with rails3 for integration-tests?

What I'm trying to ahieve is to do integration tests with webrat in rails3 like Yehuda does with test-unit in http://pivotallabs.com/talks/76-extending-rails-3 minute 34. an example: describe SomeApp it "should show the index page" visit "/" body.should =~ /hello world/ end end Does someone knows a way to do it? ...

Bundler isn't loading gems

I have been having a problem with using Bundler and being able to access my gems without having to require them somewhere, as config.gem used to do that for me (as far as I know). In my Rails 3 app, I defined my Gemfile like so: clear_sources source "http://gemcutter.org" source "http://gems.github.com" bundle_path "vendor/bundler_gems"...

Rails 3 / Bundler gem: 'undefined method `setup' for Bundler:Module (NoMethodError)'

It can be traced back to config/boot.rb, line 7: require 'rubygems' require 'bundler' Bundler.setup This is with Bundler 0.8.1 supposedly installed: ../Users/ashley$ sudo gem install bundler Successfully installed bundler-0.8.1 1 gem installed Installing ri documentation for bundler-0.8.1... Installing RDoc documentation for bundler-...

When will you upgrade your app to Rails 3?

Now that the Rails 3 beta is here, let's take a little straw poll. Please tell us briefly what your application does and when you will upgrade it to Rails 3. Or, if you're not planning on upgrading any time soon, tell us what's stopping you. ...

What might this be: New Active Record chainable query language built on top of relational algebra?

I saw this on a blog today, and I thought, finally! Rails will have something like HQL or Linq. Um, or not. I couldn't find anything about this. What I really want to know: will I be able to forget what the tables are called and use the object names only? Can I finally forget join syntax? I'd like to do that before I start forgetting ev...

Rails 3.0.0.beta Install problem: can't find executable rails

I'm trying to install the rails 3.0.0.beta and I'm running into this issue: justins-mac-: justinz$ ruby -v ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0] justins-mac-justinz$ rails -help /Library/Ruby/Site/1.8/rubygems.rb:384:in `bin_path': can't find executable rails for rails-3.0.0.beta (Gem::Exception) from /usr/bin/ra...

Back again to use Rails 2.3.5 from Rails 3

Hi, Recently, I had seen information about Rails 3.0 beta and I had wanted to trial it. So I used gem update and installed this version. But now, I need to go back to Rails 2.3.5. How could I do it? I was thinking about this two solutions: Uninstalling Rails 3. I read that somebody removed Rails 3 by using gem uninstall but he cam...

Where did link_to_function disappear to in Rails 3?

I was just playing around with Rails 3 beta and noticed that link_to_function is now gone. I presume there's an alternate method of achieving the same result (onclick event?) but I was wondering if there's a more Rails-3'y way of doing it. TIA. ...

Rails 3 on dreamhost?

I'd like to deploy a small Rails 3 app on dreamhost (just testing purposes, nothing serious) and I am wondering if anyone did it already... please chose one of I did it and it's super easy, here's how: ... Though I didn't try it, it should be easy, here's how: ... It's quite complicated, but this should get you started: .... NO WAI!!!1...

Should I use Rails 3 for my application

I have been a user of Rails for a while and used version 2.3.4 recently. Rails 3 Beta just came out recently and it seems have significant performance improvement especially with the merge with Merb. I'm planning on building an application that will take 4-6 months. Should I use Rails 3 for it starting with beta? Knowing that it will b...

Anyone using JRuby-Rack with Rails 3?

Is anyone else out there running Rails 3 and JRuby-Rack, or Jetty and Rails 3? Any trick to it? I'm going insane with some debugging, and at this point I just want to know that it's possible. ...

What are the major new features in Rails 3

I am working on rails 2.3.4 . As rails new version rails 3 has arrived , I want to know which are the major changes rails3 has? ...

Rails3 server and bundler error: uninitialized constant Bundler (NameError)

I just install rails 3 and all gems that it need, but when I try to start server, it says about problem in boot script. [rap-kasta@acerAspire testR3]$ script/rails server /home/rap-kasta/tmp/testR3/config/boot.rb:7:in `rescue in <top (required)>': uninitialized constant Bundler (NameError) from /home/rap-kasta/tmp/testR3/con...

link_to_function with rails 3

Hi, link_to_function raise an error with rails 3. undefined method `link_to_function' for #<Class> How can i do to have a link with a simple onclick, with the new rails 3 syntax? Thanks ...

Is there a rails3-compatible emacs mode yet ?

Rinari hasn't been updated in the last few months, and there doesn't seem to be such progress made in the branches on github. I've never tried emacs-rails, but from what I can see, the same applies. So, is there a rails mode somewhere that's compatible with v3 ? ...

Rails 3 can not find sqlite3-ruby

I am trying to learn rails3. I tried folowing the installation guide from guides.rails.info, I installed sudo gem install rake rack-test rack-mount erubis mail sudo gem install tzinfo builder i18n memcache-client sudo gem install text-format thor And rails 3 via sudo gem install rails --pre Now I create a new app rails abc And...

Problem with require rack/openid in Rails 3 [native require work properly]

I install plugin open_id_authentication and have this error: /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0.beta/lib/active_support/dependencies.rb:167:in `require': no such file to load -- rack/openid (LoadError) when I try to start rails server Actually, rack-openid installed in my system and i can load it from irb: irb(main):00...

Whats the alternative syntax for ActiveRecord::RecordNotFound in Rails 3

With the introduction of ActiveModel in Rails 3 whats the new method of calling ActiveRecord::RecordNotFound. ActiveModel::RecordNotFound ? ...