Displaying 2 results from an estimated 2 matches for "right_column".
2006 May 31
1
Help enhancing acts_as_nested_set
...bottom of this messgae I''ll
include the entire nested_set.rb file I created. Sorry if this is not the
best way to post to this forum.
def acts_as_nested_set(options = {})
configuration = { :parent_column => "parent_id", :left_column =>
"lft", :right_column => "rgt"}
configuration.update(options) if options.is_a?(Hash)
class_eval <<-EOV
include ActiveRecord::Acts::NestedSet::InstanceMethods
def self.left_col_name() "#{configuration[:left_column]}" end
def left_col_n...
2012 Jul 17
24
Static Pages from Railcast
Hi everyone,
I need several pages to be static but also modify when requested. I try
following the railcast from Ryan at
http://railscasts.com/episodes/117-semi-static-pages?view=comments
Here what I have done!!
rails g scaffold Pages name:string permanentlink:string title:string
author:string access_level:string is_published:boolean
meta_description:string meta_keyword:string