Displaying 20 results from an estimated 1000 matches similar to: "How to use url_escape in controller?"
2006 Feb 09
2
Very weird issue - Function not being recognized in template?
I created a function before going to dinner and placed it in application.rb. Something like:
def at_home
...
end
Then I called it from my .rhtml file like:
<% if at_home %>
.....
<% end %>
The function was working perfectly (I tested it before leaving). When I got back I keep getting
undefined local variable or method `at_home'' for
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 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 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 07
4
Ferret on Rails -- Webrick won''t start?
Hello,
I tried using
http://ferret.davebalmain.com/trac/wiki/FerretOnRails
but Webrick won''t start after implementing the plugin?
I tried both versions but to no avail?
All I get is Booting up ... and then it dies?
No info in log/development.log?
Does anyone has a working copy of acts_as_ferret or has any ideas on what''s wrong? I am placing the plugins
2006 Feb 19
4
Multiple Characters Negate Using Regexp
Dear experts,
I am trying to build a regular expression to filter out anything between <script ... > and </script> tags where I can specify something using negate class to exclude more than one character in sequence.
I tried:
originalresponse.gsub(/<script([^>]+)>([^<]+)?<\/script>/,'''')
but obviously if the script has the
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 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 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 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 Mar 01
1
Typo in a sub directory
Hello experts,
I have a rails project at http://domain.com
I would like to install typo at http://domain.com/blog
Is this possible?
I have gotten it installed and using mod_rewrite I can get to the home page.
My mod_rewrite takes everything after blog/ in the url and passes it to typo.
The issue I am having is that all Typo assets are relative and they use link like:
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 17
3
Accessing Yahoo!, Hotmail and Gmail address book?
Just wondering if any one has been able to come up with a solution to access Hotmail / Gmail / Yahoo address books via their ROR app?
Thanks for any tips/guidance you can provide.
Frank
---------------------------------
Brings words and photos together (easily) with
PhotoMail - it''s free and works with Yahoo! Mail.
-------------- next part --------------
An HTML
2006 Feb 13
11
ROR code syntax highlighting on blog?
I am interested in putting the cool syntax highlighting for ROR code. What''s the best way to do that? Is it using textilize or another formatting language? Or do I need special stylesheets?
Any assistance is appreciated.
Thanks
Frank
---------------------------------
Yahoo! Mail
Use Photomail to share photos without annoying attachments.
-------------- next part
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 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 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 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 Feb 14
6
routes question [Catching URL in a variable]
Hello Rails Gurus,
I have spent the entire night trying to figure this out with no luck. I will really appreciate if someone can come to my rescue.
I have a URL like the following:
http://domain.com/resource/http://www.rubyonrails.org
and would like to capture the rubyonrails URL after the http://domain.com/resource/ part in a variable.
I tried something like
2006 Feb 11
6
DHH Interviewed by MySQL
I didn''t see anyone post a link to David''s Interview by Lenz here on the list so I decided to post it.
The interview can be accessed here:
http://dev.mysql.com/tech-resources/interviews/david-heinemeier-hansson-rails.html
I was very happy to see the interview on PlanetMySQL as just the other day I was talking about RubyOnRails on my MySQL blog which is syndicated