similar to: Caching question

Displaying 20 results from an estimated 100 matches similar to: "Caching question"

2006 Jul 11
0
dynamic routes from the url? is this even possible?
my quesion is...what is available to routes.rb that it creates the values of the symbols you define in the rules? what i mean by this is, is there a named variable that contains the url sent in the request that i can get at to force values into my rules? i''m trying to do the following: i have a url.. www.my_domain.com/abc/blogentry/show/1 and the rule.. map.connect
2008 Mar 03
1
How change text_area form helper into rich text entry area/control?
Do you know how to render a rich text input area (with HTML formatting buttons (bold, italics, etc., available?) In RoR I''m hoping this is very easy to pull off?!? <%= text_area ''blogentry'', ''entry'' %></p> TO <%= rich_text_area ''blogentry'', ''entry'' %></p> ??? Haven''t found
2006 Apr 07
1
how to map one-to-one relation to two tables
hi. iv got a problem with one-to-one relation with AR. let''s say I need this classes: class ContentObject < ActiveRecord::Base class BlogEntry < ContentObject class FotoEntry < ContentObject i.e. Blog and Foto entries must extend ContentObject. Also they must be mapped to separate tables. I can not figure out how to map this kind of association better? The most dumb and
2006 Mar 03
19
Dreamhost rating?
Hi, I''m looking at getting some hosting to support RoR development. Thus, how would you rate Dream Host? Thanks in advance, -Conrad -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060303/91b84488/attachment.html
2006 Aug 16
0
Creating a comments system for multiple types of
It sounds like you want a polymorphic association - class Party < ActiveRecord::Base has_many :comments, :as => :commentable end class BlogEntry < ActiveRecord::Base has_many :comments, :as => :commentable end class Comment < ActiveRecord::Base belongs_to :commentable, :polymorphic => true end then include columns ''commentable_id'' and
2006 Jun 20
22
New e-book - The Money Train
While talking about my RailsConf presentation with Ben Wiseley, he suggested writing a book on the same topic... so I did! The Money Train is an e-book about building e-commerce sites using Ruby on Rails. Read my blog entry about it at http://www.bencurtis.com/archives/ 2006/06/rails-e-commerce-e-book/ or head to http:// www.agilewebdevelopment.com/book to dive right in. As always, a big
2006 Apr 18
2
Connecting to multiple databases with multiple database users
Hi everyone, I was wondering what the common practice for handling multiple db users with fine grained privileges on multiple databases is. Against the often read guideline for rails users to keep with a single db as "more dbs don''t really make sense anyway", my opinion is that it DOES make sense to use more than one db schema for a number of reasons that I won''t
2008 Jan 03
1
render :update do |page|
I was wondering if anyone knew how to do the rails equivalent of render :update do |page| It looked like maybe render_inline would do. If that''s it - does anyone have an example? Has anyone ported the scriptaculous helpers to a merb plugin yet? Also - is there anyway to search the mailing list archives? Sorry for the newb questions. Looks like a great framework though! -ben
2010 Feb 24
6
Yet another send_data :image question...
Guys & gals, I''m also learning RoR (using v2.3.4). I''ve got a basic scaffold working for image file creation, and - to a point - image file display. The send_data function is working in my controller - no problem. The model code is able to parse the uploaded file construct too. def show @image = Image.find(params[:id]) send_data(@image.binary_data, :type =>
2005 Dec 18
5
restarting fastCGI process
Hi, I am very new to this so please go easy on me... I am trying to deploy my app on dreamhost and I seem to be having problems getting it working. One of the troubleshooting items on the wiki states: Rails apps in production mode do not reflect changes made after they start running. So, if you found a bug, fixed it and nothing appeared to happen--this is probably because you
2008 Jan 05
5
multi-app merb
Ezra, I love merb, especially because it''s keeping the things that Rails does well and improves on things that Rails hasn''t done so well. One of my biggest pain points with Rails has become multi-app integration. A lot of web sites consist of multiple apps (e.g. a core site, a forum, a blog/cms, etc.). Doing this sort of thing is very ugly and inefficient with the current
2006 Aug 01
1
Some errors in the blogentry with instructions on how to install Xvnc on Solaris
Hi, I created my first Xen DomU running Solaris today using the instructions from this page Creating Solaris domU virtual disk images at OpenSolaris.org <http://www.opensolaris.org/os/community/xen/How-To-07-2006/Solaris-domU/> and it works out of the box! That''s cool again! If you''re going to do the same (and I encourage you to do so!) be aware that it takes a
2007 Feb 01
2
file_column 2nd try....
Looks like my first question a couple of days ago wasn?t very clever asked, at least very sucessfull.... So, anyway...i will try it again: I have to prefix that I am far away from fully understanding the overall concept yet, and there?s no way to get some hints in the www so far, at least my resaerches dont lead to any helpfull stuff. image_controller.rb: def create MiddleMan.new_worker
2008 Sep 24
3
caches_page :if not executing (but caches_action :if) does
Hi folks - Seeing a weird problem and would love some help. It''s documented in http://pastie.org/278310 to be more readable. In short, I have a caches_page "action", :if => {stuff} but the :if is never being called - the action is just caching every time. (If I put a debugger call in the :if block, it never stops.) If I replace caches_page with caches_action, the if
2006 Mar 22
0
page caching
I''m trying to use the following methods (extract): expire_page :controller => "site", :action => "funding" cache_page :controller => "site", :action => "welcome" to rebuild my entire site cache from an admin page, but I can''t seem to get the cache_page function to work. looking at the docs there seem to be 2 versions of
2005 Apr 27
3
caches_page questions
I''m attempting to use caches_page to speed up the loading of certain pages on my site, and have run into a couple questions: 1) The site has ''states'' (as in U.S. states), so I have a State model and a States controller. Going to http://sitename/states/ routes you to the States controller, ''index'' action. The States controller looks like so: class
2006 Feb 07
1
Page caching when name contains a dot (period)
Hi Everyone, Just thought I''d post some details of an interesting little quirk I''ve found with page caching. For a site I''ve just built for a small music festival, there are a number of artist profiles. I''m storing the artists in my database, but using caches_page to speed things up when displaying the details to the public. I''ve also made it so
2008 Oct 06
2
Letting a user choose pictures
I have an area on a site where a user can upload pictures to, and then another area in which they create a new topic. Now I want a user to be able to select photos from their uploaded photos... and I''ve hit a coder''s block. Any tips on designing this interface? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google
2007 May 07
1
Mongrel and EBADF error consuming resources
In the last few weeks I''ve noticed the load average spiking up for 5 minutes at a time (2-3.5 on a system that usually runs around 0.5-1.5). Looking closer I found that one mongrel process and litespeed are at the top, and using strace I''ve found that they''re passing the file below, seems to get stuck on single file/EBADF error. It happens with a number of different
2006 Aug 19
1
caches_page does not follow url path
I am using lighttpd. I have a controller (headlines) with a caches_page :index. When invoked via http://0.0.0.0:3000/headlines/ I find a index.html cached in the public folder. The server did not create a headlines folder and place the cached index page within the controller directory as expected. Is there a configuration detail I need to change?