# Rails

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

[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:** 1615

---

## [Unwanted amp injected in url](https://www.ruby-forum.com/t/unwanted-amp-injected-in-url/121007)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 10\
**Last updated:** [November 23, 2007, 11:09am UTC](https://www.ruby-forum.com/t/unwanted-amp-injected-in-url/121007 "2007-11-23T11:09:43Z")

</div>

Hi all, \<%=link\_to\_remote “A”, :url =\> attendee\_path(:id =\> 1 , :event\_id =\> event.id, :present =\> ‘1’) %\> results in A. For some reason amp; appears in the url. Someone knows why this happenes? Thanks in advance …

---

## [Sending email with the contents in the database](https://www.ruby-forum.com/t/sending-email-with-the-contents-in-the-database/121053)

<div class="topic-metadata">

**Author:** [@ruchita](https://www.ruby-forum.com/u/ruchita)\
**Replies:** 1\
**Last updated:** [November 23, 2007, 10:43am UTC](https://www.ruby-forum.com/t/sending-email-with-the-contents-in-the-database/121053 "2007-11-23T10:43:10Z")

</div>

Hi all, I am implementing the functionality where I have to send an email to the user with the contents already stored in the database. That i am able to do but the problem is the contents stored in the database have …

---

## [Auto\_complete field problem?](https://www.ruby-forum.com/t/auto-complete-field-problem/121057)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 10:17am UTC](https://www.ruby-forum.com/t/auto-complete-field-problem/121057 "2007-11-23T10:17:47Z")

</div>

\<%= text\_field\_with\_auto\_complete :object, :method, :class=\>“size”, :onChange=\>“load\_details()” %\> in auto\_complete text box if i press 1 then the list which has 1 as first letter will be listed, if i select any on…

---

## [Restful droppable delete](https://www.ruby-forum.com/t/restful-droppable-delete/121055)

<div class="topic-metadata">

**Author:** [@harm](https://www.ruby-forum.com/u/harm)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 9:44am UTC](https://www.ruby-forum.com/t/restful-droppable-delete/121055 "2007-11-23T09:44:02Z")

</div>

I have a list of pages from which I want to delete one. This I want to do with draggable/droppable(trash can like). Which, strange enough, does not work. This does work: {{{ link\_to\_remote(“delete”, :url =\> project\_…

---

## [404.html and 500.html not working](https://www.ruby-forum.com/t/404-html-and-500-html-not-working/121051)

<div class="topic-metadata">

**Author:** [@vyvyvy](https://www.ruby-forum.com/u/vyvyvy)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 9:02am UTC](https://www.ruby-forum.com/t/404-html-and-500-html-not-working/121051 "2007-11-23T09:02:23Z")

</div>

After updating to Rails 1.2.5, a syntax error in routes.rb no longer redirects to 500.html. It used to work in 1.2.3. Any clues? Thanks.

---

## [Active Record Question](https://www.ruby-forum.com/t/active-record-question/120970)

<div class="topic-metadata">

**Author:** [@sealedsun](https://www.ruby-forum.com/u/sealedsun)\
**Replies:** 2\
**Last updated:** [November 23, 2007, 8:41am UTC](https://www.ruby-forum.com/t/active-record-question/120970 "2007-11-23T08:41:28Z")

</div>

hey! I have the following table structure in my DB users (pk)id username pass (1:n) | users\_objects | | objectattributes | | (fk,pk)user\_id | (1:n) | …

---

## [Why is sentry's test fixtures nil?](https://www.ruby-forum.com/t/why-is-sentrys-test-fixtures-nil/121001)

<div class="topic-metadata">

**Author:** [@takuo](https://www.ruby-forum.com/u/takuo)\
**Replies:** 1\
**Last updated:** [November 23, 2007, 6:08am UTC](https://www.ruby-forum.com/t/why-is-sentrys-test-fixtures-nil/121001 "2007-11-23T06:08:50Z")

</div>

I tried sentry plugin’s test. It occured error with below message. rake test DB=‘mysql’ – create\_table(“users”, {:force=\>true}) -\> 0.0214s – initialize\_schema\_information() -\> 0.0006s – columns(“schema\_info”) -\> 0.0…

---

## [Capture IP Address to Sessions](https://www.ruby-forum.com/t/capture-ip-address-to-sessions/121040)

<div class="topic-metadata">

**Author:** [@MrLipid](https://www.ruby-forum.com/u/MrLipid)\
**Replies:** 2\
**Last updated:** [November 23, 2007, 4:51am UTC](https://www.ruby-forum.com/t/capture-ip-address-to-sessions/121040 "2007-11-23T04:51:41Z")

</div>

What I’d like to do: Capture the IP addresses of the folks visiting a web site in the Sessions table. What needs to be in place (code, model, controller, etc.), where does it need to go (application controller?), how…

---

## [Execution of system scripts from rails](https://www.ruby-forum.com/t/execution-of-system-scripts-from-rails/121042)

<div class="topic-metadata">

**Author:** [@dishkuvek](https://www.ruby-forum.com/u/dishkuvek)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 4:11am UTC](https://www.ruby-forum.com/t/execution-of-system-scripts-from-rails/121042 "2007-11-23T04:11:56Z")

</div>

I am playing around with a small app that I am going to use as a basic web front-end to various VPS tasks that I find myself doing often on my system. For example, I want to make a front-end where I just give a name i…

---

## [Has\_many through Problem](https://www.ruby-forum.com/t/has-many-through-problem/120465)

<div class="topic-metadata">

**Author:** [@fred](https://www.ruby-forum.com/u/fred)\
**Replies:** 9\
**Last updated:** [November 23, 2007, 3:56am UTC](https://www.ruby-forum.com/t/has-many-through-problem/120465 "2007-11-23T03:56:08Z")

</div>

I’ve searched the message boards and the web, and I can’t figure out why I get a weird ‘# of arguments’ error… :-\\ Thanks in advance for any help. I have three models: class User \< ActiveRecord::Base has\_many :memb…

---

## [Remote function and returning value](https://www.ruby-forum.com/t/remote-function-and-returning-value/196525)

<div class="topic-metadata">

**Author:** [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Replies:** 0\
**Last updated:** [November 22, 2007, 11:47pm UTC](https://www.ruby-forum.com/t/remote-function-and-returning-value/196525 "2007-11-22T23:47:08Z")

</div>

Hi, I am making a call to remote\_function, which updates a variable that I need to use in my current view. Call is happening, but the variable is not getting updated? PS: And to avoid missing template error , in my r…

---

## [Help needed setting up a simple app](https://www.ruby-forum.com/t/help-needed-setting-up-a-simple-app/121004)

<div class="topic-metadata">

**Author:** [@redroot](https://www.ruby-forum.com/u/redroot)\
**Replies:** 11\
**Last updated:** [November 22, 2007, 11:05pm UTC](https://www.ruby-forum.com/t/help-needed-setting-up-a-simple-app/121004 "2007-11-22T23:05:40Z")

</div>

Basically I am trying to work out how to go from my current applications to actually useful ones where i can map objects onto other objects i.e. a simple team planner table teams table players So i want to create pl…

---

## [Dynamic finders, params, symbols, confusion](https://www.ruby-forum.com/t/dynamic-finders-params-symbols-confusion/120865)

<div class="topic-metadata">

**Author:** [@kodama](https://www.ruby-forum.com/u/kodama)\
**Replies:** 5\
**Last updated:** [November 22, 2007, 9:30pm UTC](https://www.ruby-forum.com/t/dynamic-finders-params-symbols-confusion/120865 "2007-11-22T21:30:44Z")

</div>

Hello Rubyists, I think I need a crash course in how the “params\[\]” hash works. I’m trying to debug this problem, and I think a large part of the issue stems from my lack of understanding of how params works. Here is…

---

## [Install plugin "validate\_attributes"](https://www.ruby-forum.com/t/install-plugin-validate-attributes/120620)

<div class="topic-metadata">

**Author:** [@pascalschudel](https://www.ruby-forum.com/u/pascalschudel)\
**Replies:** 1\
**Last updated:** [November 22, 2007, 6:27pm UTC](https://www.ruby-forum.com/t/install-plugin-validate-attributes/120620 "2007-11-22T18:27:54Z")

</div>

hi @all I try to install the plugin “validate\_attributes”. I’m using Windows and I tried to install the plugin with rapt like this: rapt search validate\_attributes rapt install results Now, I always get an error “…

---

## [Connecting rails app running on windows and database in Linux](https://www.ruby-forum.com/t/connecting-rails-app-running-on-windows-and-database-in-linux/120958)

<div class="topic-metadata">

**Author:** [@Siddu](https://www.ruby-forum.com/u/Siddu)\
**Replies:** 2\
**Last updated:** [November 22, 2007, 4:28pm UTC](https://www.ruby-forum.com/t/connecting-rails-app-running-on-windows-and-database-in-linux/120958 "2007-11-22T16:28:08Z")

</div>

Hi, I have a situation where my rails application is running on windows and i have to connect to the MySQL database in Linux… Plz suggest me any possible way to achive this… Ragards Siddu

---

## [Dreamhost deployment question - can't get it to work](https://www.ruby-forum.com/t/dreamhost-deployment-question-cant-get-it-to-work/120127)

<div class="topic-metadata">

**Author:** [@fenlowe](https://www.ruby-forum.com/u/fenlowe)\
**Replies:** 3\
**Last updated:** [November 22, 2007, 4:07pm UTC](https://www.ruby-forum.com/t/dreamhost-deployment-question-cant-get-it-to-work/120127 "2007-11-22T16:07:32Z")

</div>

Hi all, I ran the depot application based on the book “Agile web development with Rails” on my local machine and it works great. Now I follow “http://wiki.dreamhost.com/Ruby\_on\_Rails” to setup on dreamhost, I have de…

---

## [Uninitialized constant: GetText::Rails::Configuration](https://www.ruby-forum.com/t/uninitialized-constant-gettext-configuration/121003)

<div class="topic-metadata">

**Author:** [@benni](https://www.ruby-forum.com/u/benni)\
**Replies:** 0\
**Last updated:** [November 22, 2007, 3:29pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-gettext-configuration/121003 "2007-11-22T15:29:07Z")

</div>

hey im sorry, thats maybe not the right forum, but i hope you guys can help… I’m using gettext (1.10.0) in my app (rails 1.2.5) and everything works fine except a litte action. this exception occurs, when i finish a…

---

## [Calling an Oracle stored procedure from rails](https://www.ruby-forum.com/t/calling-an-oracle-stored-procedure-from-rails/121002)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 0\
**Last updated:** [November 22, 2007, 3:26pm UTC](https://www.ruby-forum.com/t/calling-an-oracle-stored-procedure-from-rails/121002 "2007-11-22T15:26:21Z")

</div>

Hi all, I have a stored procedure in an Oracle DB. What’s the easiest way to call it (with an ID parameter, but I guess this doesn’t matter much)? Cheers, Peter http://www.rubyrailways.com http://scrubyt.org

---

## [Abstract\_class causes find to add "and foo."type" = 'Foo'"](https://www.ruby-forum.com/t/abstract-class-causes-find-to-add-and-foo-type-foo/120989)

<div class="topic-metadata">

**Author:** [@joachimgross](https://www.ruby-forum.com/u/joachimgross)\
**Replies:** 2\
**Last updated:** [November 22, 2007, 3:05pm UTC](https://www.ruby-forum.com/t/abstract-class-causes-find-to-add-and-foo-type-foo/120989 "2007-11-22T15:05:43Z")

</div>

rails 1.2.5 I’ve an abstract class as subclass of ActiveRecord::Base . Like this: class SomeAbstractModel \< ActiveRecord::Base self.abstract\_class = true end I’ve a table Foo with a column “type”, since I’ve subclas…

---

## [Need help to configure RoR to host on Linnux](https://www.ruby-forum.com/t/need-help-to-configure-ror-to-host-on-linnux/120952)

<div class="topic-metadata">

**Author:** [@chuobsok](https://www.ruby-forum.com/u/chuobsok)\
**Replies:** 3\
**Last updated:** [November 22, 2007, 2:17pm UTC](https://www.ruby-forum.com/t/need-help-to-configure-ror-to-host-on-linnux/120952 "2007-11-22T14:17:04Z")

</div>

Hi all, I have bought a space on BlueHost to host my RoR project but I couldn’t find solution to configure to call my controller by just typing www.whollycity.com/mycontroller. It would be a very thankful to whom who…

---

## [Performing arbitrary ruby scripts from rails](https://www.ruby-forum.com/t/performing-arbitrary-ruby-scripts-from-rails/120983)

<div class="topic-metadata">

**Author:** [@xgamerx](https://www.ruby-forum.com/u/xgamerx)\
**Replies:** 3\
**Last updated:** [November 22, 2007, 2:07pm UTC](https://www.ruby-forum.com/t/performing-arbitrary-ruby-scripts-from-rails/120983 "2007-11-22T14:07:56Z")

</div>

Hello, I am developing a rails application and I have certain scripts that I need to have run that have nothing to do with rails and that don’t need to provide any feedback. Basically, I have these ‘mechanize’ scripts …

---

## [Checking date of birth is greater than today](https://www.ruby-forum.com/t/checking-date-of-birth-is-greater-than-today/120818)

<div class="topic-metadata">

**Author:** [@backz](https://www.ruby-forum.com/u/backz)\
**Replies:** 18\
**Last updated:** [November 22, 2007, 1:39pm UTC](https://www.ruby-forum.com/t/checking-date-of-birth-is-greater-than-today/120818 "2007-11-22T13:39:12Z")

</div>

hi, I need to check dob is greater than today and this is what I did, but I get this error: undefined method \`/’ for Tue Nov 20 14:21:26 -0500 2007:Time ++++++++++ class AttendingIp \< ActiveRecord::Base … … def v…

---

## [Installation error](https://www.ruby-forum.com/t/installation-error/120948)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 1\
**Last updated:** [November 22, 2007, 1:07pm UTC](https://www.ruby-forum.com/t/installation-error/120948 "2007-11-22T13:07:25Z")

</div>

Hello, I’m having a problem installing rails on OS X 10.4. I installed RubyGems 0.9.5 and when I use the command “gem install rails --include-dependencies” I receive the following output: INFO: gem install -y is now…

---

## [Gettext and Mailer and localized templates](https://www.ruby-forum.com/t/gettext-and-mailer-and-localized-templates/120988)

<div class="topic-metadata">

**Author:** [@Beate\_P](https://www.ruby-forum.com/u/Beate_P)\
**Replies:** 0\
**Last updated:** [November 22, 2007, 12:59pm UTC](https://www.ruby-forum.com/t/gettext-and-mailer-and-localized-templates/120988 "2007-11-22T12:59:46Z")

</div>

Hi, my gettext in Edge Rails worked very well, until i localised my Mailer templates and renamed them like told here: http://www.yotabanana.com/hiki/ruby-gettext-howto-rails.html (Localized templates for Views/Action…

---

## [Globalize: Collection Messages](https://www.ruby-forum.com/t/globalize-collection-messages/64835)

<div class="topic-metadata">

**Author:** [@tbaustert](https://www.ruby-forum.com/u/tbaustert)\
**Replies:** 3\
**Last updated:** [November 22, 2007, 12:34pm UTC](https://www.ruby-forum.com/t/globalize-collection-messages/64835 "2007-11-22T12:34:49Z")

</div>

Hi, as far as I understand is Globalize adding every not translated message to the database during runtime of the application? (if method translate() is called) That means one need run the application and visit every…

---

## [HTML emails with inline images](https://www.ruby-forum.com/t/html-emails-with-inline-images/120411)

<div class="topic-metadata">

**Author:** [@MartOn](https://www.ruby-forum.com/u/MartOn)\
**Replies:** 1\
**Last updated:** [November 22, 2007, 12:08pm UTC](https://www.ruby-forum.com/t/html-emails-with-inline-images/120411 "2007-11-22T12:08:49Z")

</div>

Hello I have yet to find a good tutorial for creating a HTML email with images and css. It would really be helpful if anybody could help create one. I have tried the tutorial from Justin Rich, but I can not get the …

---

## [Asynchronous data update](https://www.ruby-forum.com/t/asynchronous-data-update/120866)

<div class="topic-metadata">

**Author:** [@a.k](https://www.ruby-forum.com/u/a.k)\
**Replies:** 1\
**Last updated:** [November 22, 2007, 11:21am UTC](https://www.ruby-forum.com/t/asynchronous-data-update/120866 "2007-11-22T11:21:57Z")

</div>

Hi, We are developing an e-commerce site in ROR. We have a table which stores the prices of our products. To save on repeated database queries, we read the table and store it in memory. As the admin can change the pr…

---

## [Mini\_radiant](https://www.ruby-forum.com/t/mini-radiant/120979)

<div class="topic-metadata">

**Author:** [@arpit\_jain](https://www.ruby-forum.com/u/arpit_jain)\
**Replies:** 0\
**Last updated:** [November 22, 2007, 11:21am UTC](https://www.ruby-forum.com/t/mini-radiant/120979 "2007-11-22T11:21:22Z")

</div>

HI all. have anybody used the mini\_radiant plugin? or anybody who can guide me, how we can integrate radiantCMS within an existing rails application? Thanks Arpit

---

## [Strange behavior in HABTM](https://www.ruby-forum.com/t/strange-behavior-in-habtm/120926)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [November 22, 2007, 9:35am UTC](https://www.ruby-forum.com/t/strange-behavior-in-habtm/120926 "2007-11-22T09:35:18Z")

</div>

Hello, i have here some Problems to add an Item to an has\_and\_belongs\_to\_many association. I have a class, that holds Bug entries it is connected to an Table that holds some tags. Now ive defined a method which adds a …

---

## [Opening for Experienced Ruby on Rails Developer @ Azri](https://www.ruby-forum.com/t/opening-for-experienced-ruby-on-rails-developer-azri/120968)

<div class="topic-metadata">

**Author:** [@Azri\_Careers](https://www.ruby-forum.com/u/Azri_Careers)\
**Replies:** 0\
**Last updated:** [November 22, 2007, 8:39am UTC](https://www.ruby-forum.com/t/opening-for-experienced-ruby-on-rails-developer-azri/120968 "2007-11-22T08:39:02Z")

</div>

Hi Rails Developers, Azri (www.azri.biz) is looking for Application Developer (Ruby on Rails) in India to join a small international team working on cutting edge web-based collaboration systems. Azri Solutions Pvt L…

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

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