Displaying 20 results from an estimated 2000 matches similar to: "can I expire a cached page using a regex?"
2006 Apr 08
2
trouble expiring cached pages
I''m having a bear of a time getting my cached pages to expire. Maybe
one of you guys can help me out. I''ll show my sweeper and then my log
to show that it "should" be working.
class PragmaticSweeper < ActionController::Caching::Sweeper
observe Comment
def after_save(comment)
expire_page(comment.post_id)
end
private
def expire_page(post_id)
2006 May 23
7
how to pull text from database and eval it?
I''m trying to add some executable code to my blog posts. How can I
include this inside of a blog post and eval it?
Charlie bowman
http://www.recentrambles.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060523/a3536408/attachment.html
2006 May 26
11
Weird Caching Issue
Hey all,
Here''s the issue... I''m not entirely sure it''s even a Cache-related issue,
but here it goes:
I''ve deployed a Rails app onto a subdomain of my clients site... The server
is running Apache2, and I''m proxying through to Lighttpd. The issue I''m
having is that I''m able to add content to the site (data exists in the db),
but
2006 Mar 29
2
vim syntax highlighting of rjs templates
Are there config files for vim that offer syntax highlighting of rjs
templates?
Charlie Bowman
http://www.recentrambles.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060329/486c9d84/attachment.html
2006 Apr 28
35
what''s your rails wishlist?
I''ve been working with rails for a while now. Rails is the second web
framework I''ve tried. It blows the doors off catalyst (perl''s best
framework). I even just wrote my first plugin (broomstick). Ruby''s
ability to meta-program blew me away with it''s ease of use. I''ve been
so impressed with the helpers that rails uses to make a lot of
2006 May 12
5
Implementing URLs with more than 3 levels in Rails.
Hi There
I started using Rails recently, and I see it''s very easy for URLs that
have up to 3 levels:
/:controller/:action/:id
But what do you do when you need more than 3?
For example, my current project should have an "admin" interface.
Admin has several sub-interfaces, for example a "users" interface. And
the admin/users interface has several actions, e.g.
2006 Mar 01
7
Instant Management Frontend with the Scaffolding Extensions Plugin
I''ve updated the Scaffolding Extensions Plugin[1] recently to add a
couple new features:
1) Scaffold all models and associations with one command
2) Show all associated objects on the edit page
Example of usage:
In an existing Rails application, create a controller (i.e.
"script/generate controller crud"), and modify so it looks like:
class CrudController <
2006 Feb 11
6
models and validation problem
In my model, I am attempting to correct some bad data rather than just
pass an error message back to the user. The problem is that my fix
seems to get the data past validation but it then puts the bad data into
the database rather than the new(and improved) data. If I pass in
web_site with the value of ''www.test.com'', it will pass validation but
it won''t add
2006 Mar 09
15
open source editor
does anyone know of a good place to find an open source / freeware text
editor?
--
Posted via http://www.ruby-forum.com/.
2006 May 11
9
acts_as_commentable plugin
I''ve just about finished up work on a plugin similar to
acts_as_taggable, but for comments instead which would allow you to
attach comments (possibly even a threaded discussion if conbined with
acts_as_tree) to any object. Is there anyone that would be interested
in it? I don''t want to go throug the trouble of finding some way to
distribute it unless I know that there is a
2012 May 11
14
What is the point of using :format in routes?
Today I had a strange behavior that made me suspect of jQuery at first,
but then it happened that I''ve faced two gotchas, one from CoffeeScript
and one from Rails itself.
I have something like this:
routes.rb
post ''/fields/:id.:format'' => ''fields#show'', as: :field,
constraints: {id: /\d+/}
post ''/fields/remove/:id''
2006 Mar 20
3
can''t get my rss to validate with feedtools
I know that I''m doing something wrong, but I can''t figure out what.
I''ve looked at every wiki and tutorial I can find on feedtools but I
still can''t get my rss feed working. Here''s my code.
feed = FeedTools::Feed.new
feed.entries << FeedTools::FeedItem.new
feed.entries[0].author.name = "Charlie Bowman"
feed.entries[0].title =
2006 Feb 21
2
caching and admin area
i have created some ''public'' controllers like so:
./script/generate controller example
and an ''admin'' controller like this:
./script/generate controller admin/example
now i want to have caching in the ''public'' controllers so i add
something like this:
caches_action :show, :whatever
but i want the ''admin'' controller to do
2006 Apr 18
11
how to release a plugin
I''ve developed a very useful (at least to me) plugin for rails. How do
I go about releasing it. I have an account with rubyforge but I don''t
know how to let rails know about it.
Charlie Bowman
www.recentrambles.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Mar 22
6
Relatively easy HTML/XML parsing utilities?
Anyone know of any Ruby modules which can be used to parse an HTML page
?
Thanks,
Wes
--
Posted via http://www.ruby-forum.com/.
2006 May 17
1
rails will page cache all actions but one....why?
I have page caching turned on for all actions in my controller
(pragmatic is it''s name). Rails will cache each actions except for
one.
I''ll list the three ways this action can be called. It is only cached
one of the ways. Can somebody help?
http://www.recentrambles.com/pragmatic/index - This will not cache
httphttp://www.recentrambles.com/pragmatic This will not
2006 Apr 08
4
rails won''t cache my action
I''ve decided to dive into page caching for my rails app. I''m doing my
testing with webbrick and it refuses to display the cached page for a
particular action. I''ve modified my paginator helper to put the page
parameter in the url so that the paginated page can be used with
caching. This works perfectly when the page parameter is in the url (ie
browse/2006/2 or
2006 May 29
4
Prompting user to enter value to feed Find
Hi,
While viewing part of a long list of records, the user may want to do a
Find of a specific record (for example, find_by_name). The found record
is then displayed using the list view. I''ve searched the wiki and
couldn''t find a sample or information that will help directly in
implementing this function. Any pointers?
Thanks!
gk
--
Posted via http://www.ruby-forum.com/.
2006 Apr 04
2
Foreign keys not showing!
I''m new at this so please be patient.
I have a very simple schema consisting of a around 10 tables in
Postgresql. The aim is to provide a system for PC administrators to
keep track of PC''s dotted around various venues (shops, libraries
etc.). The sort of info I want to store is PC specs, PC network specs,
PC ownership specs, PC location specs and contact person details. So I
end
2006 May 03
1
sessions, cached pages, and the tmp folder
I''ve been running edge rails for a while but I can''t seem to get my
sessions and to be written to the rails_root/tmp folder. My sessions
keep getting wrote to the servers /tmp directory. What do I need to do
to get rails to use the new tmp folder? Thanks in advance
Charlie Bowman
www.recentrambles.com
-------------- next part --------------
An HTML attachment was scrubbed...