Class: WB::DatamapperTutorial
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- WB::DatamapperTutorial
- Defined in:
- lib/datamapper-tutorial.rb
Instance Method Summary collapse
-
#page_title ⇒ Object
helper methods.
-
#title(name) ⇒ Object
def title=(name)…
Instance Method Details
#page_title ⇒ Object
helper methods
45 46 47 |
# File 'lib/datamapper-tutorial.rb', line 45 def page_title @title || "" end |
#title(name) ⇒ Object
def title=(name)… does not work, bug?
50 51 52 |
# File 'lib/datamapper-tutorial.rb', line 50 def title(name) @title = " | #{name}" end |