Displaying 20 results from an estimated 4000 matches similar to: "Can we cache user home pages?"
2005 Dec 28
3
acts_as_taggable query
Hi ,
I couldnt find any mailing list for this nice plugin so I hope this is not
off topic.I just have a basic question here.
I already had created a table and a model for the tags and items and the
join table and now want to use this plugin but I just cant seem to figure
out how to make it use my table instead of the default.
class Tag < ActiveRecord::Base # already exists and has the
2006 Jan 12
3
ActionMailer bug?
Hi ,
I have actionamailer working properly with a template and a model for
creating the mail object etc. The whole thing works correctly if I use
Webrick.but when I use it on Apache,i get the error which says "template
missing".rails is unable to find the template for the mailer
object.Hasanyone noticed this?
Vivek
PS:I am still not using the 1.0 version
-------------- next part
2006 Jan 09
6
drag and drop problem
I am working on a resource planning problem. I like to use a nice drag
and drop interface for that. E.g. have a box of persons and a box of
projects, now I would like to assign a persom to project by dragging it
from the available resources box to a recieving project box.
I have studied the amazing drag and drop shopping card code listed here
http://demo.script.aculo.us/shop
What I need to
2006 Jan 16
6
the competition?
The ''gmail'' video seems really interesting:
http://www.morfik.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060116/385e77f0/attachment.html
2006 Feb 19
8
SwitchTower to skip config/ directory
Hello,
I am trying to figure out how to use switch tower.I have a local copy of
source code and I want to put it on the host.Now I dont want to put
directories like config/ because the settings on the host and the one on my
machine are different.
Any way to do this?
Also is svn necessary to use SwitchTower?
Vivek
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Jan 15
2
What mode does Apache/Rails start in?
Hi ,
I am using Rails with APache on FC3. While I can control the mode in which
rails starts using WEBrick.How do I make APache start in one of the
dev/production modes.?
Vivek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060115/b823481f/attachment.html
2006 Jan 19
4
Using RoR pluralization rules
Hello,
RoR seems to be aware of plurals like category=>categories etc..I Want to
be able to use this in my application to relate some keywords.Is it possible
?or does RoR itself use some ruby library?
Thanks
Vivek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060119/d5660663/attachment.html
2006 Jan 05
8
AJAX to submit form, but reload the whole page
I''m using ROR 1.0 and the included prototype.js to do some AJAX stuff.
I''m using the form_remote_tag to submit a login form using AJAX.
So, any error/failed login will be displayed using AJAX. But, for
successful login, I would want it to reload the wholepage, not just
update the <DIV>.
How can I achieve this?
--
Posted via http://www.ruby-forum.com/.
2006 Jan 26
9
Problem with schema_db_import on Site5?
Hello,
I am trying to put my rails app on a host .So I presume the method to do
this is to first do
rake db_schema_dump and then copy it to the host and do
rake db_schema_import.
I use mySQL Ver 14.7 Distrib 4.1.14, for pc-linux-gnu (i686) using readline
4.3
** Invoke db_schema_import (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db_schema_import
rake
2006 Jan 03
2
Rails is slow on Apache !!!
Hi ,
I have rails running on my development machine. I have installed mod_ruby
and set up the httpd.conf file to add handlers for .rb files. But the speed
I get is still slow compared to webrick which is blazingly fast.
I have 2 questions
1. How do I determine if mod_ruby is loaded and is being used to run my ruby
scripts ?
2. Which of these fcgi /mod_ruby is faster ?
Thanks
vivek
--------------
2009 Dec 16
5
Caching comments: timestamps and subdomains
Hi,
I''m working on a website that has a very slow loading frontpage. I
wanted to start by caching certain elements that have high load. For
example, it loads the last 50 comments, along with the corresponding
usernames, avatars and more. So I cached that fragment and created a
sweeper that observes Comment and expires after every create or
destroy action.
However, I have two problems:
2006 Jan 06
3
Countries -> Cities Select box
I am trying to play with a Countries -> Cities dynamically updating select
box.that is if someone selects a country then all the cities of that
country must be listed.Does anyone know of any data source for this?
I searched for it but couldnt find any good usable source.
Better still is there a module which I can mixin for this?
Thanks
Vivek
-------------- next part --------------
An HTML
2005 Nov 17
7
render :partial in mail template
Hi,
Is it possible to render a partial template from within a mail template?
I get the following error
undefined method `controller_path'' for SupportMailer:Class
Extracted source (around line #8):
5:
6: <%= @url %>
7:
8: <%= render_partial ''sig_admin'' %>
Jeroen
2005 Dec 29
2
routes.rb
Hi I am very new to Ruby and Rails.
I am trying to setup a simple application on Apache with MySQL on a
Fedora system.
I have trouble setting up fast cgi, I am trying to deal with it.
But is fast cgi mandatory? From what I have read it boosts the
performance of the rails application.
I tried a scaffold application and I am able to run it using webbrick.
I am trying to set this up in Apache but
2008 May 26
11
doesn't create my guestbook
Hi,
I''m having some trouble with my realtions (I think). I''m creating a
guestbook with comments in ajax (the structure resembles the structure
of a blog). So I''ve got a "flogs table" which keeps the "user_id" and
the "id" of the flogs. This table. Then I''ve got a "guestbooks table"
containing "id" of the
2006 Jan 19
1
Caching suggestions
Hi ,
I have created a simple app which allows user logins and when user logs in
a home page is shown which is built using some queries to the DB. I tried
caching which didnt work properly because for some reason rails kep loading
the old cache..Anyway What I was wondering is caching only avoids the render
process but IMHO the queries are the most consuming.
My code is something like
def index
2006 Oct 10
1
A few quick fragment cache questions
Doing some reading up on fragment cache before implmenting it and had a
few questions:
1.) I read that page and action caching have issues or don''t work at
all with query strings (more so with page caching). Does fragment
caching work with query strings? i.e something like
example.com/foo/bar?page=2
2.) If the above is true and I have an authentication system built
into my app, if 2
2006 Mar 09
2
clarify
im learning rails and i got a error while writing a sample code.
Script :
-------
class GuestBookController < ActionController::Base
def index
@entry = GuestBook.find_all
end
def list_parameters
params = request.parameters
render :text=>"Parameters #{params}"
end
def list
params = request.parameters
@entry = GuestBook.new(params[:name])
2006 Jul 14
5
Newbie Formating output
Hi, am a rails newbie. I had problems with 2 tasks
i have created a guestbook app just to try out rails
users sign guestbook by leaving name and message
currently, the list action shows plain text like this:
Joe Smith
love your guestbook
but i would like to add formating to the name field, say different
colour, bold, and add time eg:
Joe Smith (in red colour) wrote 5 days ago
love your
2009 Sep 12
1
guestbook for centos 4 or 5 ???
does anyone have a very secure & reliable recommendation for a guestbook
solution for virtual hosting on centos 4 or 5 ?
- rh