On 10-10-20 06:13 AM, Rajinder Yadav wrote:
On 10-10-20 05:18 AM, Murph2m wrote:
Ok - Thanks so I was reading it wrong! but then all that is in the
pages_controller.rb is:

class PagesController< ApplicationController

def home
@title = "Home"
end

def contact
@title = "Contact"
end

def about
@title = "About"
end

def help
@title = "Help"
end
end

Doesn't this just define some variables? what is the action?


the action are defined as ruby method using 'def/end' blocks: here the defined actions are obviously: home, contact, about and help


--
Kind Regards,
Rajinder Yadav | DevMentor.org | Do Good! ~ Share Freely

GNU/Linux: 2.6.35-22-generic
Kubuntu x86_64 10.10 | KDE 4.5.1
Ruby 1.9.2p0 | Rails 3.0.1

--
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