Displaying 2 results from an estimated 2 matches for "url_title".
2006 May 03
6
ActiveRecord and Lost Connection
...T)
## Continue
## Active Record Class setup ---------------
class NumbersLink < ActiveRecord::Base
end
##
## Main Entry Point
##
def ruby_main
@logger.info "Connecting."
# Create a dummy record
link = NumbersLink.new()
link.main_url = "http://www.yahoo.com"
link.url_title = "The Title"
link.created_on = Time.now
if link.save
@logger.info("Record was successfully created.")
else
@logger.info("ERR: Could not create record")
end
@logger.info "Done."
end
ruby_main
##
## Once the record is saved, you will...
2006 Apr 26
2
Retrieving :id without passing it
Ok, I have read most of Agile Web Dev... so I had a question about
beautifying URLs using routes.rb. I''m trying to architect a content
management system in which a user can create template pages. This way,
when a user creates a template page nested within, it displays it as
though it''s displaying a folder structure, much like a directory tree
(using acts_as_tree).
I have a