similar to: Best way to know the domain across all controllers?

Displaying 20 results from an estimated 4000 matches similar to: "Best way to know the domain across all controllers?"

2006 Feb 11
6
Rails 1.1?
I have a few very basic questions. Is anyone using rails 1.1? How/Where can I get Rails 1.1 (I don''t see it on RubyonRails.org? What are the issues involved in moving from Rails 1.0 to Rails 1.1? If I move to Rails 1.1, can I downgrade? Just curious. Thank you very much for your assistance. Frank --------------------------------- Yahoo! Mail Use Photomail
2006 Feb 04
22
What''s the best way to embed a form?
I would like to embed my login form on my app''s home page. What''s the best way to render the login action of member controller from another action? Thanks Frank --------------------------------- Relax. Yahoo! Mail virus scanning helps detect nasty viruses! -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Feb 02
19
No more logs after SVN?
Hello, Yesterday I "subversioned" my app using svn and now everything works fine except I don''t see any log entries in development.log? What would cause the log entries to be not produced anymore? Thanks Frank --------------------------------- Bring words and photos together (easily) with PhotoMail - it''s free and works with Yahoo! Mail.
2006 Feb 08
10
Sharing sessions between subdomains?
Hello, I know how to share sessions between subdomains in PHP. Can anyone please guide me as to how I can share sessions using Ruby? Where can I set the value of domain for which the cookie is set? I would like for a user to login on the home page and then go to blog.home.com and not have to login again. Any guidance/pointers are appreciated. Thanks''
2006 Feb 08
2
301 Redirect with Rails
I have been searching for a way to do this but haven''t found anything yet. Can anyone please guide me to a resource or tell me how I would go about doing a 301 (Moved Permanently) redirect using Rails? Thanks Frank --------------------------------- Yahoo! Mail - Helps protect you from nasty viruses. -------------- next part -------------- An HTML attachment was
2006 Jan 30
4
How to encode URLs?
How does one encode URLs in ROR? Thanks Frank --------------------------------- Bring words and photos together (easily) with PhotoMail - it''s free and works with Yahoo! Mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060130/60280869/attachment.html
2006 Feb 01
3
SimpleRss: Poorly formatted feed
Based on the suggestions here I decided to use SimpleRSS but no matter what RSS feed I try, I keep getting the error: "Poorly formatted feed" I have tried "well formatted" RSS 0.91, 0.92 and 2.0 feeds but to no avail. Can anyone please come to my rescue? Thanks Frank --------------------------------- Do you Yahoo!? With a free 1 GB,
2006 Feb 07
3
Why would @params[:page] >= 2 give an error?
Can anyone please guide me as to what is wrong with the following? if @params[:page] >= 2 @title+=@params[:page] end Thanks Frank --------------------------------- Yahoo! Mail - Helps protect you from nasty viruses. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jun 20
8
Integrating multiple applications
I''ve got a couple apps that I use (billing app, support ticket app, some other custom apps) that I want to integrate into one site. They will all use the same layout for the most part, and will link between each other. When I initially thought of doing this, I figured if I put the apps at different roots - /billing /support etc - then the links wouldn''t work at all, because
2006 Feb 06
4
Searching large tables with Rails?
I have a large table (> 20,000 records) with text columns for which I need to build a search function. Is there a "Rails" way to index all the entries and NOT search using LIKE? "LIKE" searches can get very slow and I would rather build an index of the columns to speed up things. Just want to know if there is something like "acts_as_indexable"
2006 Feb 17
2
Accessing just the body of email in text format?
I am interested in accessing the body of the email in text format using IMAP to receive emails. So far I have tried the following #body = imap.fetch(message_id, "BODY[TEXT]") #body = imap.fetch(message_id, ["BODY[]"])[0].attr[''BODY[]''] But both of the above give me body text + the headers including Content-Type etc. How can I access
2006 Feb 01
4
Viewing all Properties and Methods?
Hello, How can I see all the properties (member variables) and methods (functions) that are available for an object? Is there a function similar to PHP''s var_dump in MySQL? Many thanks for your assistance. Frank --------------------------------- What are the most popular cars? Find out at Yahoo! Autos -------------- next part -------------- An HTML attachment
2006 Mar 24
2
Where to put array to be shared across models.
Quick question: I have an array of reserved words that I want to share across most of my models so I can do something like this in the models: validates_exclusion_of :username, :in => RESERVED_WORDS, :message => "This username is a reserved word. Please choose another." Here is a sampling of the the array: RESERVED_WORDS = %w( blog blogs forum forums search login logout signup
2006 Mar 20
6
Rails and Offline processing
How are you guys handling threads or server processes that have to, for example, process the data in your application on a periodic basis? Cron jobs can do it and then run on the database. But, are there ways to launch threads within the rails application itself. I have heard of WebBrick ways, but I am working with lighttpd, fastcgi? (textdrive if you are really interested).
2006 Feb 02
4
uninitialized constant Test (NameError)
I have three Rails apps on my laptop. Two can runs tests just fine. The third generates this error when I try to run any tests: > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/ > active_support/dependencies.rb:200:in `const_missing'': > uninitialized constant Test (NameError) > from ./test/unit/../test_helper.rb:5 > from
2006 Feb 20
46
Ruby + Apache Lucene using XMLRPC?
Please excuse me if this has been answered before. Is there a "how-to" guide or a walkthrough on integrating Lucene with ROR via XMLRPC? I got Ferret to work but I am worried that it''s not going to be as scalable. I highly appreciate your assistance. Thanks Frank --------------------------------- Relax. Yahoo! Mail virus
2006 Feb 06
35
ROR Recipes Beta
Yesterday I got the beta version of ROR recipes book and the recipes are great. For those of you still thinking about it, I highly recommend the book. The only thing I wish is that if there were some more recipes (greedy me), especially AJAX related and installing an application within your current application. For instance, it will be great to see how one can implement the typo blog
2006 Feb 16
5
filter a list
I''d like to add some filter choices to display a list of items. These items has some boolean fields for example, and would like to have a checkbox at the top of the window to let me select how to filter the list. here''s what i put in my controller if @params[:filter].nil? @params[:filter] = { ''sent'' => "1"} end ... generate the corresponding
2006 Feb 08
8
Liquid with database?
Hello, Just wondering if someone here as successfully ported Liquid to use with a database. I would like to try it out but not sure how Liquid integrates with current templates. Thanks Frank --------------------------------- Yahoo! Mail - Helps protect you from nasty viruses. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Feb 09
9
RMagick on OS X - HOW
Hello all. I''m a seasoned system administrator and have no fear of building source packages on a variety of platforms, but RMagick has, until recently, evaded all of my attempts to building it on my PowerBook. Someone else just mentioned that they had trouble with RMagick on OS X (Intel, don''t really know if my advice will help) so I decided to post a HOWTO to the list. I