I have used scaffold to create several controlers.... each controller
has 3 to 5 views/actions?

I am thinking I should be able to call on each view by simply putting
the url call in the browser address right?

http://localhost:3000/user_loggin/user_home

But that doesn't work

Now I have erased index from public and I have my route map.root set to
the right controler and index.

and I have used map.resources on all controllers, which I had to write
manually.

the problem is I can only get to the index of each controller. I can't
get to the view of any of the aditional actions.

class UserLogginController < ApplicationController
  def login
    if request.post?
        user = User.authenticate(param[:full_name],params[:password])
        if user
          session[:user_id]= user.id
          rediret_to(:action => "user_home")
        else
          flash.now[:notice] = "Invalid User name or Passord"
        end
    end
  end

  def logout
  end

  def user_home
  end

  def index
  end
end
when I try it gives me this error:
Unknown action
No action responded to show. Actions: current_search, index, login,
logout, new_search, and user_home

Now it see's all the other views...the "Action: current_search, index,
login, logout, new_search, and user_home" is listing the views.. but I
can't get them to display
-- 
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 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