def login
end
def logout
end
def my_balance
end
def home
end
def my_mail
end
Now that we initialized the pages in our controller, we now have to create the pages. Just think of it as declaring variables. First you have to create it, then you can fill it in. That's what's happening here - we're telling the controller there WILL be a page called login, logout, etc. Now you'll see ruby's first 'sensible defaults.' When you define a page in the controller, the pages you create must match the names in the controller to work. If we agree to this, it will save us alot of work, and ruby will automate most of the process for it.
end
def logout
end
def my_balance
end
def home
end
def my_mail
end


Search
Categories


Print Article
Send to a friend
Bookmark Article
Save as PDF