[Rails] Multiple Before Filters

2012-01-19 Thread Dan King
I've added two before filters in one of my controllers like so: before_filter :filter_one before_filter :filter_two The first filter (:filter_one) always fires, but the second filter (:filter_two) never does. Anyone know how to make both filters always fire? Thanks. -Dan -- Posted via http://

[Rails] EJS File Load Error on Rails 3.1

2012-01-04 Thread Dan King
Hi, Does anyone know why I'm getting the following load error: no such file to load -- ejs (in /home/dan/Projects/faculty/app/assets/templates/home/index.jst.ejs) The index.jst.ejs file does exist and is located exactly where the error message states. I've appended 'app/assets/template' folder

[Rails] Devise + RubyCAS Client

2011-12-08 Thread Dan King
Anyone know how to combine Devise with RubyCAS client to authenticate against a Jasig CAS server? Thanks. -Dan -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email

[Rails] Re: Re: Grails to Ruby on Rails

2011-12-08 Thread Dan King
Msan Msan wrote in post #1035622: > What is the js framework you are using? Backbone.js (see http://documentcloud.github.com/backbone/) > I read something about sproutcore, do you know? I've tried sproutcore and while it's nice, I prefer Backbone and Knockout. -- Posted via http://www.ruby-for

[Rails] Re: Grails to Ruby on Rails

2011-12-07 Thread Dan King
Msan Msan wrote in post #1035431: > Can I ask why you want to switch from grails to rails? > I use grails and rails for my applications, I love both, and I think > that grails is as good as rails. Recently, most of my work has been Grails based. However, I do have experience with both Grails and R

[Rails] Grails to Ruby on Rails

2011-12-05 Thread Dan King
I'm considering swapping out Grails for Ruby on Rails as the front-end for my application, which is currently comprised of a Grails front-end and a couple of RESTful "backend" Java Web Services. The various components are tied together using CAS. Before going ahead with the swap I'd appreciate insi

[Rails] Unable to Seed Data for Authlogic

2011-04-02 Thread Dan King
When I run rake db:seed in my Rails 3 application I get the following error; anyone know how to resolve it? rake aborted! undefined method 'find_or_create_by_first_name_and_last_name_and_role_and_email_and_password_and_password_confirmation' Below are my create_users.rb,user.rb, and seeds.rb file

[Rails] Handling routing errors & unknown actions in Rails 3

2011-03-29 Thread Dan King
Hi, In my Rails 3 app I want to log 'unknown action' and 'routing error' incidences and re-direct to the home page. With this goal in mind, I added the following to bottom of my routes.rb file: match '*' => 'home#index' I thought that this catch-all would re-direct to the home page in case of '

[Rails] Conflict between ruby & jruby bundle install

2011-03-25 Thread Dan King
When I run the 'bundle install' command from the main directory of my ruby on rails (version 3) app, I get the following error: Installing sqlite3 (1.3.3) with native extensions C:/jruby-1.6.0.RC2/lib/ruby/site_ruby/1.8/rubygems/installer.rb:529:in `build_extensions': ERROR: Failed to build gem na