Displaying 5 results from an estimated 5 matches for "devchix".
Did you mean:
deschi
2007 Nov 02
5
RSpec, RESTful nested routes and :path_prefix
Dear list,
In the app we are making we have a rout something like this:
map.resources :projects do |projects|
projects.resources :pages, :controller
=>"Wiki::Pages", :path_prefix => "/projects/:project_id/
wiki", :name_prefix => "project_wiki_"
end
But I can''t get RSpec(I''m very new to it) to accept this. It keeps
throwing errors:
2007 Oct 28
2
failing test with nested controller routes
...ps'',
:name_prefix => "admin_",
:path_prefix => "admin"
any ideas? the groups_url(id) is the only route that is failing in the test.
thanks :)
--
http://rubygeek.com - my blog featuring: Ruby, PHP and Perl
http://DevChix.com - boys can''t have all the fun
2007 Jul 24
9
will_paginate plugin doesn't work with Association Extensions?
I have:
class Post < ActiveRecord::Base
has_many :comments do
def published
find( :all,
:conditions => {:published => true} )
end
end
end
When in my controller I do
Post.find(:first).comments.published.paginate :page => params[:page]
I get an error
undefined method `paginate'' for []:Array
Is will_paginate supposed to
2007 Nov 20
29
Don't make cookie-stored sessions a default
Hi!
Before Rails 2.0 is coming, I suggest not to make CookieStore the
default session storage. It stores clear-text values on the client-side
and the integrity check hash can be brute-force attacked.
I understand that this has been set due to speed advantages, but I
believe it''s better to make better security a default.
I''ve written a blog post about this
2006 Mar 03
13
Listing help
Hi,
I''ve created a Rails application and am having a problem listing by a
particular category in an associated table. I followed the instructions
found at the O''Reilly tutorial
(http://www.onlamp.com/pub/a/onlamp/2005/03/03/rails.html?page=3) but have
not had success. Can anyone please outline a better set of instructions
than in the "Showing Recipes in a