ruby-on-rails-3-beta

Remove ActiveRecord in Rails 3 (beta)

Now that Rails 3 beta is out, I thought I'd have a look at rewriting an app I have just started work on in Rails 3 beta, both to get a feel for it and get a bit of a head-start. The app uses MongoDB and MongoMapper for all of its models nad therefore has no need for ActiveRecord. In the previous version, I am unloading activerecord in th...

Does rails3 provide any hooks for dropping in pluggable, re-usable components?

What efforts have been made in rails 3 to encourage code re-use? Is there anything akin to merb slices / engines built into the framework that would allow me to drop in a configurable component such as a 'blog' engine? If so, what is considered best practice? ...

First Ruby on Rails App: use v3 (Beta) or 2.3?

Now that Rails 3.0 beta has been released, should I spend time building my first Rails application on 2.3 or does it make more sense to use the beta? ...

Ruby gem error installing rack-mount + Rails

I would like to install Rails 3.0 Beta but ran into what appears to be a dependency error: $: sudo gem install rack-mount Successfully installed rack-mount-0.5.1 1 gem installed Installing ri documentation for rack-mount-0.5.1... Installing RDoc documentation for rack-mount-0.5.1... $: sudo gem install rails --prerelease ERROR: Erro...

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...

Rails 3.0.0.beta and Facebooker: anyone else seeing the following?

My rails server seems to break after installing the facebooker plugin. Any suggestions on fixing this would be great. I'm using rails 3.0.0.beta and facebooker. Here are the steps and the error that I'm seeing: $ rails -v Rails 3.0.0.beta $ rails break; cd break $ ./script/rails plugin install git://github.com/mmangino/facebooker.git...

Why do I have problems running script/x tasks after installing rails 3 beta?

I installed rails 3 beta in my OSX Leopard. After that, I've created a rails project to test it. From inside its folder, I just can't do script/generate, or even script/server. It returns '-bash: script/server: No such file or directory'. How could I resolve this issue? ...

Having problems using haml and rails3

After installing rails3, I'm experiencing problems when trying to use haml with it. I have the updated gem installed, and after rails PROJECT_NAME , I did haml --rails in its root. It apparently had worked fine, since I have haml folder inside plugins, init.rb, as expected. But when I try to rake, or rails server, I get: rake aborted...

Ruby on Rails 3 Beta: On ajax get request, I can't respond back with the html.erb view. Is there a work-around?

I have began playing with Rails 3 beta and I am trying to do my usual starter project. I create a simple list of projects, but use ajax requests for the app's navigation. In Rails 3, my usual code does not work for the basic scaffold, I receive an ActionView:MissingTemplate (Missing template projects/new with {:format=>[:js]} Here is...

Rails 3 memory issue

Hello! I'm developing a new site based on Ruby on Rails 3 beta. I knew this might be a bad idea considering it's just beta, but I still thought it might work. Now though I'm having HUGE problems with Rails consuming huge ammounts of memory. For my application today it consumes about 10 mb per request and it doesn't seem to release it ...

Rails 3 bundle permissions problem

I get this error message from Passenger: Permission denied - /root/.bundle/ruby/1.8/specifications/activeresource-3.0.0.beta2.gemspec Does anyone recognize it and can tell me how I can find a solution? I'm really stuck… The server runs Ubuntu 9. ps. The problem occured after I ran a deploy in which I'd added to the Gemfil gem "...

Rails 3 Beta 2, Haml, Nested Layouts and LocalJumpError

Alright, I'm trying to create an app with nested templates. I'm using Rails 3 Beta 2 and Haml. I've poked around and I've decided to take the clearest approach and have structured my templates like so: # application.html.haml !!! %body %h1 Outermost Template = yield(:foobar) # inner.html.haml - content_for :foobar do %h2 Inner Te...

Sample app for Rails 3?

Can someone point me to a solid sample app that shows how to use the new features and syntax of Rails 3? It's been answered before for earlier versions (http://stackoverflow.com/questions/248371/whats-the-best-open-source-ruby-on-rails-project-to-learn-from), but I have not seen one for Rails 3. Specifically the following: Routing Ma...

Help with Associations in Rails 3

Ruby: 1.9.2 Rails: 3.0beta3 I need some help with associations in Rails 3. I have the following models (see excerpts below): School, State, SchoolLocale The schools table has the following fields: id, name, state_id, school_locale_id The states table has the following fields: id, abbr, name The school_locales table ha...

Ruby gem error: no such file to load -- bundler

I have some troubles with a Ruby gem named Bundler. My OS is Ubuntu 10.04. My environment is as follows: $ gem env RubyGems Environment: - RUBYGEMS VERSION: 1.3.6 - RUBY VERSION: 1.9.1 (2010-01-10 patchlevel 378) [i486-linux] - INSTALLATION DIRECTORY: /usr/lib/ruby1.9.1/gems/1.9.1 - RUBY EXECUTABLE: /usr/bin/ruby1.9.1 - EXEC...

Which ruby version/build works best with rails 3?

I've been having trouble discerning which version/build of ruby to use with the most recent rails 3 beta. I was using 1.8.7 but over time the server would use too much memory and begin to slow down and eventually not work at all. Which version/build worked best for you? ...

Error when running bundler install

I tried running bundle install in our production server, but I encounter this problem: Updating git://github.com/collectiveidea/delayed_job.git fatal: Refusing to fetch into current branch refs/heads/master of non-bare repository An error has occurred in git. Cannot complete bundling. I have bundler version 0.9.25 install...

Server unable to find public folder in rails 3 production environment

I'm using the latest rails 3 beta. The app works fine in development mode, but when I start the server in production mode via rails server -e production, it seems that the public folder can't be found. I get error messages like: ActionController::RoutingError (No route matches "/javascripts/jquery.js"): And similar messages for everyt...

What does this rake db:seed error mean?

I've been trying to solve this problem for a couple of hours but I can't seem to understand what's going on. I'm using Rails 3 beta, and want to seed some data to the database. However, when I try to seed some values through db:seed, I get this error: rake aborted! Attribute(#81402440) expected, got Array(#69024170) The see...

Rails 3 server won't start in cucumber environment

I'm trying to start my rails 3 app in the same environment that cucumber uses because this is necessary for a particular test. When I try to start the server via rails server -e cucumber I get this error: /home/james/rails-projs/fact/config/environments/cucumber.rb:7: undefined local variable or method `config' for main:Object (NameErro...