This is the users controller that I included on the last post, not the
site controller. However, the site controller is as follows:

class SiteController < ApplicationController
  caches_page :terms_of_service, :privacy_policy, :about, :custom404
  before_filter :login_from_cookie

  def index
    # If a user is logged in, only show questions they haven't
answered

    if logged_in?
      @questions = Question.paginate(:page => params[:page],
                                      :per_page => 20,
                                      :conditions => ["NOT EXISTS
(SELECT id FROM replies WHERE (replies.user_id = ?) AND
(replies.question_id = questions.id))", current_user.id],
                                      :include => :user,
                                      :order => 'questions.created_at
DESC')
    else
      @questions = Question.paginate(:page => params[:page],
                                               :per_page => 15,
                                               :include => :user,
                                               :order => 'questions.created_at
DESC')
    end

    respond_to do |format|
      format.html
    end
  end

  def terms_of_service
    respond_to do |format|
      format.html
    end
  end

  def privacy_policy
    respond_to do |format|
      format.html
    end
  end

  def about
    respond_to do |format|
      format.html
    end
  end

  def custom404
    render :partial => "custom404", :layout => "application", :status
=> "404"
  end
end


On Jan 12, 4:25 pm, "Christoph Jasinski"
<[email protected]> wrote:
> Well I'm a RoR newbie but what I see is the following:
>
> 1) Error Message:
> somebody called /site/signup (right?)
> but your controller (site) doesn't have such an action. Here your
> would have to define one.
> The actions you have definied in your site controller are
> - new
> - show
> - update
> - create
> - edit
>
> 2) Routes
> But you route signup the following way
> map.signup '/signup', :controller => 'users', :action => 'new'
>
> It seems to me that there is some inconsistency.
>
> I hope I was some help ;)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to