# Rails

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

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

---

## [Ruby on rails tweaks](https://www.ruby-forum.com/t/ruby-on-rails-tweaks/150993)

<div class="topic-metadata">

**Author:** [@Delirium\_tremens](https://www.ruby-forum.com/u/Delirium_tremens)\
**Replies:** 2\
**Last updated:** [October 15, 2008, 6:12pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-tweaks/150993 "2008-10-15T18:12:19Z")

</div>

Is there a way to avoid having to type “ruby script/server” in "C:\\www \\myrubysite"? Is there a way to eliminate “:3000” from " http://localhost:3000/ "? Is there a way to add '“myrubysite” to " http://localhost/ "?

---

## [Adding an id to form\_tag](https://www.ruby-forum.com/t/adding-an-id-to-form-tag/150976)

<div class="topic-metadata">

**Author:** [@Schalk\_N](https://www.ruby-forum.com/u/Schalk_N)\
**Replies:** 2\
**Last updated:** [October 15, 2008, 5:21pm UTC](https://www.ruby-forum.com/t/adding-an-id-to-form-tag/150976 "2008-10-15T17:21:39Z")

</div>

Hi all, When using form\_for it is easy to add an id to the form using :html =\> {:id =\> ‘someid’} However, how would one accomplish the same when using the form\_tag ? Thank you in advance, Schalk

---

## [Time Zone](https://www.ruby-forum.com/t/time-zone/150818)

<div class="topic-metadata">

**Author:** [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Replies:** 3\
**Last updated:** [October 15, 2008, 4:32pm UTC](https://www.ruby-forum.com/t/time-zone/150818 "2008-10-15T16:32:16Z")

</div>

Hello friends, My question is like if the user select the time zone for his country the application timezone should display the selected time zone. so for implement this what i should do? regards abhi

---

## [Use a string as template for mail body](https://www.ruby-forum.com/t/use-a-string-as-template-for-mail-body/150920)

<div class="topic-metadata">

**Author:** [@chrisjo](https://www.ruby-forum.com/u/chrisjo)\
**Replies:** 6\
**Last updated:** [October 15, 2008, 1:52pm UTC](https://www.ruby-forum.com/t/use-a-string-as-template-for-mail-body/150920 "2008-10-15T13:52:51Z")

</div>

I want to allow users to create mail templates through an administration page. I store the email body as text in the database, and now I want to take the string, and treat it like an email template and send as mail. S…

---

## [Using ferret indexes](https://www.ruby-forum.com/t/using-ferret-indexes/150964)

<div class="topic-metadata">

**Author:** [@lyes](https://www.ruby-forum.com/u/lyes)\
**Replies:** 3\
**Last updated:** [October 15, 2008, 1:11pm UTC](https://www.ruby-forum.com/t/using-ferret-indexes/150964 "2008-10-15T13:11:07Z")

</div>

Hello list, I am newbe with ruby rails, and I want to now if is it possible de access indexes created with Ferret using acts\_as\_ferret (I assume that we can do that) Links to some good tutorials will be welcome than…

---

## [Conditional join selection with active record](https://www.ruby-forum.com/t/conditional-join-selection-with-active-record/150968)

<div class="topic-metadata">

**Author:** [@inriz](https://www.ruby-forum.com/u/inriz)\
**Replies:** 1\
**Last updated:** [October 15, 2008, 12:38pm UTC](https://www.ruby-forum.com/t/conditional-join-selection-with-active-record/150968 "2008-10-15T12:38:07Z")

</div>

hello list, i’m searching for an implementation of the following sql statement: SELECT inserent.\* FROM inserent join (select objpriv.maknr from objpriv where objpriv.bankkto like ‘593%’ and objpriv.zahlart = ‘B’ gr…

---

## [Redirect does not show error\_messages](https://www.ruby-forum.com/t/redirect-does-not-show-error-messages/150965)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 2\
**Last updated:** [October 15, 2008, 12:02pm UTC](https://www.ruby-forum.com/t/redirect-does-not-show-error-messages/150965 "2008-10-15T12:02:03Z")

</div>

Hi In the view I have \<%= error\_messages\_for :problem%\> In the model I have validations. and in controller inside transaction I have @problem.save! So suppose an error happens I have redirected to the same view w…

---

## [Has and belongs to many, join table id included in query](https://www.ruby-forum.com/t/has-and-belongs-to-many-join-table-id-included-in-query/150934)

<div class="topic-metadata">

**Author:** [@chrisjo](https://www.ruby-forum.com/u/chrisjo)\
**Replies:** 3\
**Last updated:** [October 15, 2008, 11:15am UTC](https://www.ruby-forum.com/t/has-and-belongs-to-many-join-table-id-included-in-query/150934 "2008-10-15T11:15:42Z")

</div>

I’m using a habtm association for the first time and I’m having some trouble when inserting several rows. The id of the join table seems to be set to an already existing id causing the insert to fail. class ClassA \< A…

---

## [More than one check boxes and selecting all the check boxes](https://www.ruby-forum.com/t/more-than-one-check-boxes-and-selecting-all-the-check-boxes/150961)

<div class="topic-metadata">

**Author:** [@indu](https://www.ruby-forum.com/u/indu)\
**Replies:** 2\
**Last updated:** [October 15, 2008, 11:09am UTC](https://www.ruby-forum.com/t/more-than-one-check-boxes-and-selecting-all-the-check-boxes/150961 "2008-10-15T11:09:18Z")

</div>

Hai Just started to learn Ruby on Rails I have a list of users displayed as rows and towards each row there is a check box. There is a “Select All” , and “Approve” buttons. On clicking the Select All button I want to…

---

## [Active record validations by Eshwar](https://www.ruby-forum.com/t/active-record-validations-by-eshwar/150958)

<div class="topic-metadata">

**Author:** [@cool](https://www.ruby-forum.com/u/cool)\
**Replies:** 2\
**Last updated:** [October 15, 2008, 10:58am UTC](https://www.ruby-forum.com/t/active-record-validations-by-eshwar/150958 "2008-10-15T10:58:25Z")

</div>

hi here is my form fields \<tr\> \<td\>\<%= text\_field :title, :name =\> ‘external\_link\[title\]\[\]’ %\> \<%= text\_field :url, :name =\> ‘external\_link\[url\] \[\]’ %\> \<%= link\_to\_function ‘Add’, “add();”…

---

## [Combine date and time in mysql](https://www.ruby-forum.com/t/combine-date-and-time-in-mysql/150963)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 0\
**Last updated:** [October 15, 2008, 10:53am UTC](https://www.ruby-forum.com/t/combine-date-and-time-in-mysql/150963 "2008-10-15T10:53:57Z")

</div>

I have a date from a calendar\_date\_select and a time from a time\_select. They go to a date field and a time field in mysql. How do I combine time and date on both sides to make a comparison in a find? I think this is …

---

## [Check for which page the helper is in](https://www.ruby-forum.com/t/check-for-which-page-the-helper-is-in/150946)

<div class="topic-metadata">

**Author:** [@hyuuu](https://www.ruby-forum.com/u/hyuuu)\
**Replies:** 1\
**Last updated:** [October 15, 2008, 10:39am UTC](https://www.ruby-forum.com/t/check-for-which-page-the-helper-is-in/150946 "2008-10-15T10:39:39Z")

</div>

I want to check which controller or action I am currently in, I can access controller.controller\_name but is there a more elegant way to do it? Something like, am\_I\_in {:controller=\>‘user’,:action=\>‘index’} or am\_I\_i…

---

## [SSL With Ajax call](https://www.ruby-forum.com/t/ssl-with-ajax-call/150955)

<div class="topic-metadata">

**Author:** [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Replies:** 1\
**Last updated:** [October 15, 2008, 9:54am UTC](https://www.ruby-forum.com/t/ssl-with-ajax-call/150955 "2008-10-15T09:54:59Z")

</div>

Hello Friends, In my application on signup page ssl in implemented which is working fine but my Ajax functionaility part is now stoped working any idea to resolve this problem? regards Abhishek

---

## [Qustion on rails new threading feature](https://www.ruby-forum.com/t/qustion-on-rails-new-threading-feature/150834)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 2\
**Last updated:** [October 15, 2008, 7:54am UTC](https://www.ruby-forum.com/t/qustion-on-rails-new-threading-feature/150834 "2008-10-15T07:54:27Z")

</div>

I am writing a library that deals with class variables. But until recently all rails requests were in their own process. Now that threading has been introduced I’m not sure how this effect class variables, so I was ho…

---

## [Database connection switching at runtime](https://www.ruby-forum.com/t/database-connection-switching-at-runtime/150800)

<div class="topic-metadata">

**Author:** [@priyasaini](https://www.ruby-forum.com/u/priyasaini)\
**Replies:** 5\
**Last updated:** [October 15, 2008, 6:16am UTC](https://www.ruby-forum.com/t/database-connection-switching-at-runtime/150800 "2008-10-15T06:16:07Z")

</div>

Hi All: I want my application to authenticate user through master database and accordingly should connect them to their specific database. I am using the sub-domain as identifier for the user and stores domain-databa…

---

## [Robust xhr command queue](https://www.ruby-forum.com/t/robust-xhr-command-queue/149967)

<div class="topic-metadata">

**Author:** [@darren](https://www.ruby-forum.com/u/darren)\
**Replies:** 2\
**Last updated:** [October 15, 2008, 6:14am UTC](https://www.ruby-forum.com/t/robust-xhr-command-queue/149967 "2008-10-15T06:14:17Z")

</div>

Hi, I’d like to implement a robust command queue for an ajaxy web app. I was wonder if anyone would be able to feed me back any constructive criticism that comes to mind on this. The problem in my mind is that if an …

---

## [Problem with parsing xml](https://www.ruby-forum.com/t/problem-with-parsing-xml/150950)

<div class="topic-metadata">

**Author:** [@bishal](https://www.ruby-forum.com/u/bishal)\
**Replies:** 0\
**Last updated:** [October 15, 2008, 6:03am UTC](https://www.ruby-forum.com/t/problem-with-parsing-xml/150950 "2008-10-15T06:03:23Z")

</div>

I need to parse a xml like the following…which is the response of the restful web service produced by Jersey. âˆ’ 1 Nepal japan RElations âˆ’ 2 this is test Now i need to take out the title of the xml response fr…

---

## [Force reload assets](https://www.ruby-forum.com/t/force-reload-assets/150772)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 2\
**Last updated:** [October 15, 2008, 5:02am UTC](https://www.ruby-forum.com/t/force-reload-assets/150772 "2008-10-15T05:02:19Z")

</div>

Hi all, What’s the best way to always reload the assets (javascript + css) when in the development environment? I’m developing a plugin for Redmine that relies heavily on javascript for interactivity and would like t…

---

## [Error installing RadRails](https://www.ruby-forum.com/t/error-installing-radrails/150945)

<div class="topic-metadata">

**Author:** [@Pedro\_Bessa](https://www.ruby-forum.com/u/Pedro_Bessa)\
**Replies:** 0\
**Last updated:** [October 15, 2008, 4:20am UTC](https://www.ruby-forum.com/t/error-installing-radrails/150945 "2008-10-15T04:20:14Z")

</div>

I searched this group and Google, but nobody else is having this problem. When trying to install RadRails from Aptana, I get the error: http://img72.imageshack.us/img72/7555/aptanaimagegy8.png When trying to install …

---

## [Does not validate presence of entry fields](https://www.ruby-forum.com/t/does-not-validate-presence-of-entry-fields/150839)

<div class="topic-metadata">

**Author:** [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Replies:** 2\
**Last updated:** [October 15, 2008, 3:33am UTC](https://www.ruby-forum.com/t/does-not-validate-presence-of-entry-fields/150839 "2008-10-15T03:33:08Z")

</div>

Hi all I wrote a small form and I am trying to check if the fields are populated. My Model is: class Contact \< ActiveRecord::Base validates\_presence\_of :name, :email, :body validates\_length\_of :body, :maximum =\>20…

---

## [Undefined method "updated?"](https://www.ruby-forum.com/t/undefined-method-updated/69087)

<div class="topic-metadata">

**Author:** [@Szymon\_R](https://www.ruby-forum.com/u/Szymon_R)\
**Replies:** 5\
**Last updated:** [October 15, 2008, 2:51am UTC](https://www.ruby-forum.com/t/undefined-method-updated/69087 "2008-10-15T02:51:18Z")

</div>

I recently updated Rails to the latests version, and one of my existing apps broke. More speficially, it can’t find the method “updated?” when it is attempting to call it on one of my models. The stack trace follows: …

---

## [Referential integrity in Rails](https://www.ruby-forum.com/t/referential-integrity-in-rails/150938)

<div class="topic-metadata">

**Author:** [@marcos](https://www.ruby-forum.com/u/marcos)\
**Replies:** 1\
**Last updated:** [October 15, 2008, 1:45am UTC](https://www.ruby-forum.com/t/referential-integrity-in-rails/150938 "2008-10-15T01:45:46Z")

</div>

Hi there As you might guess, I come from the Java enterprise world. I’m considering using Rails for my next web app, and have to say I’m very impressed with the speed of development. However, as I get past the basic …

---

## [Integrating Rails with other technologies](https://www.ruby-forum.com/t/integrating-rails-with-other-technologies/150936)

<div class="topic-metadata">

**Author:** [@marcos](https://www.ruby-forum.com/u/marcos)\
**Replies:** 1\
**Last updated:** [October 15, 2008, 1:27am UTC](https://www.ruby-forum.com/t/integrating-rails-with-other-technologies/150936 "2008-10-15T01:27:39Z")

</div>

Hi there Can anyone here give me examples/experiences of integrating Rails with other technologies? For instance, if I want to create nice graphs, I really like JFreeChart, which is a Java app. The best way I could i…

---

## [Stray questions](https://www.ruby-forum.com/t/stray-questions/150924)

<div class="topic-metadata">

**Author:** [@peterkemp](https://www.ruby-forum.com/u/peterkemp)\
**Replies:** 7\
**Last updated:** [October 15, 2008, 1:03am UTC](https://www.ruby-forum.com/t/stray-questions/150924 "2008-10-15T01:03:37Z")

</div>

Hi, I’ve been googling and going through the forum, and I can’t find the answers so some stray questions. A) If I have a render :partial is there a way to get rid of the trailing newline? \<%- and -%\> don’t work. Is…

---

## [NetBeans can't find OracleAdapter](https://www.ruby-forum.com/t/netbeans-cant-find-oracleadapter/150939)

<div class="topic-metadata">

**Author:** [@kelleysislander](https://www.ruby-forum.com/u/kelleysislander)\
**Replies:** 0\
**Last updated:** [October 15, 2008, 1:03am UTC](https://www.ruby-forum.com/t/netbeans-cant-find-oracleadapter/150939 "2008-10-15T01:03:04Z")

</div>

I’m sort of cross-posting the following from the NetBeans forum in hopes that maybe someone here might have an idea: I’m having a strange issue with the NetBeans nightly from 10/14 (and before that, I was having the s…

---

## [Validate field with radio\_button](https://www.ruby-forum.com/t/validate-field-with-radio-button/150931)

<div class="topic-metadata">

**Author:** [@fmh](https://www.ruby-forum.com/u/fmh)\
**Replies:** 0\
**Last updated:** [October 14, 2008, 11:42pm UTC](https://www.ruby-forum.com/t/validate-field-with-radio-button/150931 "2008-10-14T23:42:15Z")

</div>

hello, i want validate my text\_field only when the radio\_button is clicked. i try this but when i validate my form , the radio button lost focus and validate is not checked —View---- \<%= radio\_button(“user”,“type”, …

---

## [Find\_by\_user\_id\_and\_id question](https://www.ruby-forum.com/t/find-by-user-id-and-id-question/150923)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 1\
**Last updated:** [October 14, 2008, 11:39pm UTC](https://www.ruby-forum.com/t/find-by-user-id-and-id-question/150923 "2008-10-14T23:39:19Z")

</div>

Hi, I wondering about the next: The book Advance Rails states that using def show @message = Message.find\_by\_user\_id\_and\_id(current\_user.id, params\[:id\]) end Should return RecordNotFound if the user that tries to …

---

## [Plugins and the test environment](https://www.ruby-forum.com/t/plugins-and-the-test-environment/150478)

<div class="topic-metadata">

**Author:** [@nick](https://www.ruby-forum.com/u/nick)\
**Replies:** 9\
**Last updated:** [October 14, 2008, 11:39pm UTC](https://www.ruby-forum.com/t/plugins-and-the-test-environment/150478 "2008-10-14T23:39:19Z")

</div>

Hi guys. I’m writing a plugin for use in the test environment. However, when I run rake test'' orrake spec’’, RAILS\_ENV is set to “development” when my plugin’s init.rb is run. How do you configure a plugin to load re…

---

## [Re-using crontrollers with non-http requests](https://www.ruby-forum.com/t/re-using-crontrollers-with-non-http-requests/150739)

<div class="topic-metadata">

**Author:** [@julien51](https://www.ruby-forum.com/u/julien51)\
**Replies:** 4\
**Last updated:** [October 14, 2008, 10:50pm UTC](https://www.ruby-forum.com/t/re-using-crontrollers-with-non-http-requests/150739 "2008-10-14T22:50:36Z")

</div>

Hi! I am creating a application that does a lot of background processing. For this I am using a queue (starling in my case…) and several pollers that will get a message from the queue and execute some code correspond…

---

## [Best-practice for programmatically using rxml generated from controller/view? (or 'how can I view a](https://www.ruby-forum.com/t/best-practice-for-programmatically-using-rxml-generated-from-controller-view-or-how-can-i-view-a/150915)

<div class="topic-metadata">

**Author:** [@jashmenn](https://www.ruby-forum.com/u/jashmenn)\
**Replies:** 2\
**Last updated:** [October 14, 2008, 10:47pm UTC](https://www.ruby-forum.com/t/best-practice-for-programmatically-using-rxml-generated-from-controller-view-or-how-can-i-view-a/150915 "2008-10-14T22:47:01Z")

</div>

Hey Guys, Here’s the scenario: I’ve got vendor-specific XML I need to create and then POST it somewhere. It sounds easy enough, but I’m running into issues when it comes time to actually use the XML. Trying hard to …

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

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