search for: view_posts

Displaying 4 results from an estimated 4 matches for "view_posts".

2006 Jun 22
4
stylesheet linking and layouts
...; %> </head> <body> <div id="site-container"> ... <cut for space> <%= @content_for_layout %> ... <cut for space> </div> </body> A view action has another stylesheet defined in the opening line such as: <%= stylesheet_link_tag "view_posts", :media => "all" %> <div id="left-column"> blah, blah, blah </div> The layout has the appropriate stylesheet for common layout features. The actions each have their own stylesheets so that the main stylesheet isn''t 2000 lines long. :) Now, th...
2007 Jun 12
0
how do i cache this?
i have a account controller, where the user can make a post private or public. the function that views a public post is in the ''main'' controller. i put cache :view_post in the main controller, but now if the user changes the setting in the account controller how can i delete the cache that is located in the main controller? each cache file is stored in
2008 May 28
3
Plug-in support for Camping Apps
# camping_plugin.rb # plug-in support for Camping Apps # require ''lib/camping_plugin'' # override R helper method to your liking :-) module Camping module PluginHelpers def R_with_module(c,*g) p,h=/\(.+?\)/,g.grep(Hash) g-=h raise "bad route" unless u = c.urls.find{|x| break x if x.scan(p).size == g.size &&
2005 Dec 24
10
can''t find view from Mailer?
Hi everyone, Like so many other here, I too am new to Rails (and Ruby), and so far it''s been a great experience. I haven''t been able to get around one problem though. When trying to use the mailer, I recieve an error like this: ActionView::ActionViewError in Tell_friend#send_email No rhtml, rxml, or delegate template found for send_to_friend The scenario is this: A form on