# Rails

**URL:** https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=696

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 697

---

## [Embedded expressions in ERB](https://www.ruby-forum.com/t/embedded-expressions-in-erb/184597)

<div class="topic-metadata">

**Author:** [@allanium](https://www.ruby-forum.com/u/allanium)\
**Replies:** 2\
**Last updated:** [March 5, 2010, 4:33am UTC](https://www.ruby-forum.com/t/embedded-expressions-in-erb/184597 "2010-03-05T04:33:27Z")

</div>

I’m stuck in trying to get an embedded expression in ERB. I’m trying to put @post into @httppost. However when I print @httppost I get (notice the @post): {“aps”: {“badge”: 1, “alert”, #{@post}}, “sound”: “cat.caf”, …

---

## [Controllers not passed as a parameter causing an error](https://www.ruby-forum.com/t/controllers-not-passed-as-a-parameter-causing-an-error/184423)

<div class="topic-metadata">

**Author:** [@ajibanda](https://www.ruby-forum.com/u/ajibanda)\
**Replies:** 3\
**Last updated:** [March 5, 2010, 3:30am UTC](https://www.ruby-forum.com/t/controllers-not-passed-as-a-parameter-causing-an-error/184423 "2010-03-05T03:30:34Z")

</div>

Hi! I have an app that is already working on a shared host, but I need to run this on another server that was setup from scratch. Currently, the server has the following specs: OS: ubuntu Apache 2 MySQL 5 Rails 2.…

---

## [NoMethodError (undefined method \`match' for nil:NilClass):](https://www.ruby-forum.com/t/nomethoderror-undefined-method-match-for-nil-nilclass/184604)

<div class="topic-metadata">

**Author:** [@rage989](https://www.ruby-forum.com/u/rage989)\
**Replies:** 0\
**Last updated:** [March 5, 2010, 3:20am UTC](https://www.ruby-forum.com/t/nomethoderror-undefined-method-match-for-nil-nilclass/184604 "2010-03-05T03:20:20Z")

</div>

Hi, I have a redmine server with Ruby 1.8 running along with Webrick. When I try to access any docs on the server using web interface I get the following message. Internal error An error occurred on the page you are…

---

## [Risk of upgrading parts of REXML parser](https://www.ruby-forum.com/t/risk-of-upgrading-parts-of-rexml-parser/184602)

<div class="topic-metadata">

**Author:** [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Replies:** 0\
**Last updated:** [March 5, 2010, 2:57am UTC](https://www.ruby-forum.com/t/risk-of-upgrading-parts-of-rexml-parser/184602 "2010-03-05T02:57:12Z")

</div>

Hi, In production we are running Ruby v1.8.6 patchlevel 0, whose REXML libraries contain a bug in the Attribute class. This particular bug escapes ampersands twice (e.g. “You & Me” =\> “You && Me”). We’ll probably upg…

---

## [Stop ActionMailer from trying to send securely](https://www.ruby-forum.com/t/stop-actionmailer-from-trying-to-send-securely/184533)

<div class="topic-metadata">

**Author:** [@miah](https://www.ruby-forum.com/u/miah)\
**Replies:** 8\
**Last updated:** [March 5, 2010, 12:23am UTC](https://www.ruby-forum.com/t/stop-actionmailer-from-trying-to-send-securely/184533 "2010-03-05T00:23:16Z")

</div>

Hello everyone, I’m trying to use ActionMailer to send out emails via a third party SMTP service. On my development box (running ruby 1.8.6) everything works without a hitch. On the production server(ruby 1.8.7) it …

---

## [Filtering RSS Feeds/News](https://www.ruby-forum.com/t/filtering-rss-feeds-news/184591)

<div class="topic-metadata">

**Author:** [@guustavooo](https://www.ruby-forum.com/u/guustavooo)\
**Replies:** 0\
**Last updated:** [March 4, 2010, 11:33pm UTC](https://www.ruby-forum.com/t/filtering-rss-feeds-news/184591 "2010-03-04T23:33:33Z")

</div>

So, I need to build an application which will grab some news from some sources, but only news containing an specific query such as “Iraq war”, and display in my main page. I tried using Scrapi, Nokogiri, Scrubyt, Mech…

---

## [\[2.3.5\] How can I tell a model to use a specific DB and table?](https://www.ruby-forum.com/t/2-3-5-how-can-i-tell-a-model-to-use-a-specific-db-and-table/184585)

<div class="topic-metadata">

**Author:** [@Phoenix\_R](https://www.ruby-forum.com/u/Phoenix_R)\
**Replies:** 4\
**Last updated:** [March 4, 2010, 10:56pm UTC](https://www.ruby-forum.com/t/2-3-5-how-can-i-tell-a-model-to-use-a-specific-db-and-table/184585 "2010-03-04T22:56:02Z")

</div>

So I have these two databases: Website Company Intranet I’ve built the DB and schema for the company intranet application to allow certain users (authenticated by AD within my rails app) to input data that will then…

---

## [Persistent Sessions](https://www.ruby-forum.com/t/persistent-sessions/184285)

<div class="topic-metadata">

**Author:** [@mike343](https://www.ruby-forum.com/u/mike343)\
**Replies:** 3\
**Last updated:** [March 4, 2010, 10:11pm UTC](https://www.ruby-forum.com/t/persistent-sessions/184285 "2010-03-04T22:11:33Z")

</div>

Hi there, I am trying to figure out how to have persistent sessions (with like a month until expiration) for my users, sort of like a “remember me” functionality but that is handled automatically on login. I am hopin…

---

## [\[ANN\] Sunspot::Rails 1.0.0 Released](https://www.ruby-forum.com/t/ann-sunspot-rails-1-0-0-released/184582)

<div class="topic-metadata">

**Author:** [@mat\_b](https://www.ruby-forum.com/u/mat_b)\
**Replies:** 0\
**Last updated:** [March 4, 2010, 8:58pm UTC](https://www.ruby-forum.com/t/ann-sunspot-rails-1-0-0-released/184582 "2010-03-04T20:58:58Z")

</div>

SUNSPOT AND SUNSPOT::RAILS Sunspot is a library providing a powerful, all-ruby API for the Solr search engine. Sunspot manages the configuration of persistent Ruby classes for search and indexing and exposes Solr’s mo…

---

## [Trading Google Wave invites for host!](https://www.ruby-forum.com/t/trading-google-wave-invites-for-host/178812)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 1\
**Last updated:** [March 4, 2010, 8:46pm UTC](https://www.ruby-forum.com/t/trading-google-wave-invites-for-host/178812 "2010-03-04T20:46:33Z")

</div>

Trading up to 10 google wave invites for a fast, powerful Rails host that provides me with a top level domain: ie: webwebwebwebweb.com or wwwww.com Or similar offers. Send me an email or post here.

---

## [Best practise for non-us formated numbers in parameters](https://www.ruby-forum.com/t/best-practise-for-non-us-formated-numbers-in-parameters/184578)

<div class="topic-metadata">

**Author:** [@jarl](https://www.ruby-forum.com/u/jarl)\
**Replies:** 0\
**Last updated:** [March 4, 2010, 8:26pm UTC](https://www.ruby-forum.com/t/best-practise-for-non-us-formated-numbers-in-parameters/184578 "2010-03-04T20:26:45Z")

</div>

I have a contrller that receives data (by POST requests) from an external system. The external system formats the number according to danish traditon, that is PI=3,1415, and 3/4 = 0,75. This gives me problems in my ac…

---

## [Uploadify authentication problem](https://www.ruby-forum.com/t/uploadify-authentication-problem/184577)

<div class="topic-metadata">

**Author:** [@kofuchs](https://www.ruby-forum.com/u/kofuchs)\
**Replies:** 0\
**Last updated:** [March 4, 2010, 8:11pm UTC](https://www.ruby-forum.com/t/uploadify-authentication-problem/184577 "2010-03-04T20:11:45Z")

</div>

I’m trying to use Uploadify in my project. Everything works in my machine, locally. The problem is when I use the same code in my production environment. When I try to upload a photo, it returns an error “HTTP 401”, b…

---

## [Searching by tag](https://www.ruby-forum.com/t/searching-by-tag/184573)

<div class="topic-metadata">

**Author:** [@manish\_belsare](https://www.ruby-forum.com/u/manish_belsare)\
**Replies:** 0\
**Last updated:** [March 4, 2010, 7:11pm UTC](https://www.ruby-forum.com/t/searching-by-tag/184573 "2010-03-04T19:11:09Z")

</div>

Hello sir, i hav implemented a web application in which a user posts a question and the answer will be provided by an EXPERT who has logged in… The question posted wil hav tag,title and ques\_string… now i want to imp…

---

## [Trying to set text\_area helper class for css =\> getting weirdness](https://www.ruby-forum.com/t/trying-to-set-text-area-helper-class-for-css-getting-weirdness/184540)

<div class="topic-metadata">

**Author:** [@lunaclaire](https://www.ruby-forum.com/u/lunaclaire)\
**Replies:** 4\
**Last updated:** [March 4, 2010, 7:08pm UTC](https://www.ruby-forum.com/t/trying-to-set-text-area-helper-class-for-css-getting-weirdness/184540 "2010-03-04T19:08:54Z")

</div>

here’s my view code: \<%= f.text\_area :notes, :cols =\> 40, :rows =\> 15, :class =\> ‘focus’ %\> here’s what firefox shows is being gen’d: note that I’m ending up with a class = “focus text\_area” instead of the expected…

---

## [Plugin : adding filters in ApplicationController](https://www.ruby-forum.com/t/plugin-adding-filters-in-applicationcontroller/184551)

<div class="topic-metadata">

**Author:** [@onionwushu](https://www.ruby-forum.com/u/onionwushu)\
**Replies:** 1\
**Last updated:** [March 4, 2010, 6:15pm UTC](https://www.ruby-forum.com/t/plugin-adding-filters-in-applicationcontroller/184551 "2010-03-04T18:15:02Z")

</div>

Hi everybody ! I’m trying to extend the class ApplicationController with a plugin to add filters to follow some executions. I don’t know why, but I observed a weird behaviour and I don’t know why. Here is my code. in…

---

## [Ruby Midwest Conference Opens Call for Speakers](https://www.ruby-forum.com/t/ruby-midwest-conference-opens-call-for-speakers/197029)

<div class="topic-metadata">

**Author:** [@kule](https://www.ruby-forum.com/u/kule)\
**Replies:** 0\
**Last updated:** [March 4, 2010, 6:11pm UTC](https://www.ruby-forum.com/t/ruby-midwest-conference-opens-call-for-speakers/197029 "2010-03-04T18:11:31Z")

</div>

The Ruby Midwest Conference has opened its Call for Speakers (http:// www.rubymidwest.com/#call-for-speakers). Come share your excitement, experience, and expertise with fellow Rubyists in the Midwest! We’re pleased t…

---

## [Cannot send mails out on linux](https://www.ruby-forum.com/t/cannot-send-mails-out-on-linux/184477)

<div class="topic-metadata">

**Author:** [@johnuseast](https://www.ruby-forum.com/u/johnuseast)\
**Replies:** 7\
**Last updated:** [March 4, 2010, 5:29pm UTC](https://www.ruby-forum.com/t/cannot-send-mails-out-on-linux/184477 "2010-03-04T17:29:34Z")

</div>

hi, i’m new to Rails. just setup an application and every thing looks fine except: cannot send mails out using “sendmail” setting. worse: there is no error from ActionMailer - deliver\_ never complained and I got a me…

---

## [From ajax to rails](https://www.ruby-forum.com/t/from-ajax-to-rails/184567)

<div class="topic-metadata">

**Author:** [@erwillie](https://www.ruby-forum.com/u/erwillie)\
**Replies:** 0\
**Last updated:** [March 4, 2010, 4:59pm UTC](https://www.ruby-forum.com/t/from-ajax-to-rails/184567 "2010-03-04T16:59:26Z")

</div>

Hi everyone: I want to pass the next function to a rails in my view, because I tried it but the results donÂ´t be succesful. Anyone can help me? I know that Ajax.PeridicalUpdater is periodically\_remote call in ruby bu…

---

## [Works in Ruby but not in Rails](https://www.ruby-forum.com/t/works-in-ruby-but-not-in-rails/184517)

<div class="topic-metadata">

**Author:** [@neilbain](https://www.ruby-forum.com/u/neilbain)\
**Replies:** 9\
**Last updated:** [March 4, 2010, 4:14pm UTC](https://www.ruby-forum.com/t/works-in-ruby-but-not-in-rails/184517 "2010-03-04T16:14:26Z")

</div>

This works c=Comment.find(:first) =\> #\<Comment id: 1, story\_id: 1, content: " Good", created\_at: “2010-02-23 13:10:50”, updated\_at: “2010-02-23 13:19:19”, user\_id: 1\> c.user\_id =\> 1 c.user =\> #\<User id: 1, l…

---

## [Load before show](https://www.ruby-forum.com/t/load-before-show/184441)

<div class="topic-metadata">

**Author:** [@erwillie](https://www.ruby-forum.com/u/erwillie)\
**Replies:** 2\
**Last updated:** [March 4, 2010, 2:08pm UTC](https://www.ruby-forum.com/t/load-before-show/184441 "2010-03-04T14:08:18Z")

</div>

Hi everyone. I have one problem and I donÂ´t know how to start to solve.Here it is: I want to do a webpage for show an image, that image change every second. I had succes for show and refresh the image every second, b…

---

## [Field\_error\_proc](https://www.ruby-forum.com/t/field-error-proc/184484)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 1\
**Last updated:** [March 4, 2010, 12:49pm UTC](https://www.ruby-forum.com/t/field-error-proc/184484 "2010-03-04T12:49:11Z")

</div>

Hi I have in my environment ActionView::Base.field\_error\_proc = Proc.new { |html\_tag, instance| “\<span class=“fieldWithErrors”\>#{html\_tag}” } It is working perfectly. But what I need is only for the login form I hav…

---

## [Testing a domain driven application](https://www.ruby-forum.com/t/testing-a-domain-driven-application/184554)

<div class="topic-metadata">

**Author:** [@eugenio](https://www.ruby-forum.com/u/eugenio)\
**Replies:** 0\
**Last updated:** [March 4, 2010, 12:16pm UTC](https://www.ruby-forum.com/t/testing-a-domain-driven-application/184554 "2010-03-04T12:16:46Z")

</div>

in the application i’m working on i modify the view\_path according to the value of request.domain. it seems to work, but my functional test fail. how can i specify the request.domain value in the testing environment?

---

## [High CPU load upon upgrade to 2.3.5](https://www.ruby-forum.com/t/high-cpu-load-upon-upgrade-to-2-3-5/184371)

<div class="topic-metadata">

**Author:** [@twaters](https://www.ruby-forum.com/u/twaters)\
**Replies:** 3\
**Last updated:** [March 4, 2010, 10:39am UTC](https://www.ruby-forum.com/t/high-cpu-load-upon-upgrade-to-2-3-5/184371 "2010-03-04T10:39:01Z")

</div>

After recently updating a rather large app from 2.0.2 to 2.3.5 (running on ruby 1.8.6, latest apache and passenger) the CPU used by the ruby process would jump to 100% for a good 3 secs and locked up the server within…

---

## [Nested conditions with set\_table\_name?](https://www.ruby-forum.com/t/nested-conditions-with-set-table-name/184548)

<div class="topic-metadata">

**Author:** [@Marcel\_Cary](https://www.ruby-forum.com/u/Marcel_Cary)\
**Replies:** 0\
**Last updated:** [March 4, 2010, 10:36am UTC](https://www.ruby-forum.com/t/nested-conditions-with-set-table-name/184548 "2010-03-04T10:36:05Z")

</div>

When passing hash conditions on a joined association to find(), I expected ActiveRecord to interpret the hash key as the association name and use the corresponding table name in the query. However, it seems to be int…

---

## [@post.id to javascript](https://www.ruby-forum.com/t/post-id-to-javascript/184534)

<div class="topic-metadata">

**Author:** [@octimizer](https://www.ruby-forum.com/u/octimizer)\
**Replies:** 2\
**Last updated:** [March 4, 2010, 7:13am UTC](https://www.ruby-forum.com/t/post-id-to-javascript/184534 "2010-03-04T07:13:34Z")

</div>

Hi, I’m trying to send the id’s of bunch of posts to javascript but instead of id’s I’m getting something like: #Post:0x1044e7078#Post:0x1044e6fd8 What am I doing wrong ? Many thanks!

---

## [Ruby ecommerce options](https://www.ruby-forum.com/t/ruby-ecommerce-options/166099)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 4\
**Last updated:** [March 4, 2010, 6:39am UTC](https://www.ruby-forum.com/t/ruby-ecommerce-options/166099 "2010-03-04T06:39:17Z")

</div>

I am looking into setting up a storefront, what are some good ruby store front solutions, what is everyone using?

---

## [How to assign boolean values?](https://www.ruby-forum.com/t/how-to-assign-boolean-values/184543)

<div class="topic-metadata">

**Author:** [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Replies:** 1\
**Last updated:** [March 4, 2010, 5:59am UTC](https://www.ruby-forum.com/t/how-to-assign-boolean-values/184543 "2010-03-04T05:59:50Z")

</div>

Dear Friends, I have created a Boolean field like table.boolean :log\_status, :default =\> 0, :null =\> false When i try to add log\_status in my controller part, by default the value is assigned as 1. I d…

---

## [Newbie problem with installing rails](https://www.ruby-forum.com/t/newbie-problem-with-installing-rails/184537)

<div class="topic-metadata">

**Author:** [@whoohoo](https://www.ruby-forum.com/u/whoohoo)\
**Replies:** 1\
**Last updated:** [March 4, 2010, 5:48am UTC](https://www.ruby-forum.com/t/newbie-problem-with-installing-rails/184537 "2010-03-04T05:48:08Z")

</div>

Installed Ruby fine, works fine. Windows, 1.8.6 Fire up RubyGems to install rails. gem install rails Various success messages to screen. Open a command line. rails test Ton of creates … OK. cd test ruby script/se…

---

## [More elegant solution for turning link into button?](https://www.ruby-forum.com/t/more-elegant-solution-for-turning-link-into-button/184436)

<div class="topic-metadata">

**Author:** [@Dudebot](https://www.ruby-forum.com/u/Dudebot)\
**Replies:** 8\
**Last updated:** [March 4, 2010, 4:34am UTC](https://www.ruby-forum.com/t/more-elegant-solution-for-turning-link-into-button/184436 "2010-03-04T04:34:58Z")

</div>

I’d like my print link to look like a button. Its action responds to a GET request (as I think it should.) I wrote this helper: def button\_link( label, path, \*features ) # makes a link look like a button linkt…

---

## [How can i translate Active Scaffold?](https://www.ruby-forum.com/t/how-can-i-translate-active-scaffold/184539)

<div class="topic-metadata">

**Author:** [@longhorn](https://www.ruby-forum.com/u/longhorn)\
**Replies:** 0\
**Last updated:** [March 4, 2010, 3:07am UTC](https://www.ruby-forum.com/t/how-can-i-translate-active-scaffold/184539 "2010-03-04T03:07:25Z")

</div>

Hi, everyone. Finally i can install the Active Scaffold plugin, and looks great let me tell you one thing everyday i love more ruby on rails xD; but my first problem now is: I speak spanish and all my clients speak to…

[Previous page](https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=695)

[Next page](https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=697)
