Displaying 4 results from an estimated 4 matches for "publiccontroller".
2009 Apr 04
2
NoMethodError in PublicController
Hello,
I''m following a tutorial with a public controller, line_item model,
and cart model. When I try to add an item to the cart I am getting an
error
NoMethodError in PublicController#add_to_cart
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.<<
Here is my code
http://pastie.org/436638
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message be...
2006 Jul 16
0
Captcha Fun
...is used to update a
database. I am using a method that is outlined here:
http://svn.2750flesk.com/validates_captcha/trunk/README, but things are not
working correctly. The captcha image shows up in the user form, but the
captcha input is being ignored. The following shows my controller file:
class PublicController < ApplicationController
include ActionView::Helpers::TextHelper
verify :method => :post, :only => [ :destroy, :create, :update ],
:redirect_to => { :action => :index }
def index
@posts = Post.public_posts
end
def save
@supermodel = MySuperModel.find(par...
2006 Jun 08
5
Suggestions wanted for non-logged-in user in closed beta phase
Will shortly be deploying first iteration of app to some beta testers
(i.e. friends), and want them to be able see it both from logged-in view
and guest (i.e. not logged-in) view. The two are a fair bit different.
It''s a closed beta, so (hopefully) no pages (other than a blank login
page) will be visible.
The question is, what''s the best way for them to be able to see (and
2007 May 12
4
help, 1 error(s) on assignment of multiparameter attributes
Hi everyone!
I just started learning Ruby on Rails about a week ago for a school
project, and can''t seem to find a solution for something.
I have this inside the form inside of edit_albums.rhtml:
<%= start_form_tag :action=>''proccess_edit_album'', :id=>@album.id %>
....
Release Date: <%= datetime_select(:album, :release_date, :start_year
=> 1960)