# Rails

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

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

---

## [Where to put basic site pages?](https://www.ruby-forum.com/t/where-to-put-basic-site-pages/147500)

<div class="topic-metadata">

**Author:** [@jason](https://www.ruby-forum.com/u/jason)\
**Replies:** 9\
**Last updated:** [September 2, 2008, 10:10pm UTC](https://www.ruby-forum.com/t/where-to-put-basic-site-pages/147500 "2008-09-02T22:10:31Z")

</div>

I am new to RoR, so forgive me as I know this is fundamental, but what is the “standard” for creating basic site pages like: home, about, contact, etc. I definitely understand the MVC approach and therefore do not wan…

---

## [Best way to freeze Rails?](https://www.ruby-forum.com/t/best-way-to-freeze-rails/147521)

<div class="topic-metadata">

**Author:** [@ddancer](https://www.ruby-forum.com/u/ddancer)\
**Replies:** 1\
**Last updated:** [September 2, 2008, 9:31pm UTC](https://www.ruby-forum.com/t/best-way-to-freeze-rails/147521 "2008-09-02T21:31:38Z")

</div>

Is there a best way to freeze Rails apps these days? WRT the github hosting. Bear in mind I’m still learning my around Git. I tried: git clone git://github.com/rails/rails.git git checkout 2-1-stable but it didn’t…

---

## [Help with link\_To](https://www.ruby-forum.com/t/help-with-link-to/147416)

<div class="topic-metadata">

**Author:** [@pipex](https://www.ruby-forum.com/u/pipex)\
**Replies:** 2\
**Last updated:** [September 2, 2008, 8:46pm UTC](https://www.ruby-forum.com/t/help-with-link-to/147416 "2008-09-02T20:46:30Z")

</div>

Hi, I need some help!! I have to make a link\_to with a string to have that strin in another controlle who can i do it?? i have something like this \<%= link\_to ‘Buscador’, new\_consulta\_path, :query=\>“rssnews” %\> and…

---

## [ApplicationHelper not available to views and models?](https://www.ruby-forum.com/t/applicationhelper-not-available-to-views-and-models/104796)

<div class="topic-metadata">

**Author:** [@gioele](https://www.ruby-forum.com/u/gioele)\
**Replies:** 9\
**Last updated:** [September 2, 2008, 7:15pm UTC](https://www.ruby-forum.com/t/applicationhelper-not-available-to-views-and-models/104796 "2008-09-02T19:15:47Z")

</div>

Hello, I have some constants that I need to share in almost all the pieces of my application. So I decided to put them in ApplicationHelper. From what I understand, ApplicationHelper is used to store helpers available…

---

## [SQL 3 Lite Error](https://www.ruby-forum.com/t/sql-3-lite-error/147495)

<div class="topic-metadata">

**Author:** [@MrSWatson](https://www.ruby-forum.com/u/MrSWatson)\
**Replies:** 13\
**Last updated:** [September 2, 2008, 6:49pm UTC](https://www.ruby-forum.com/t/sql-3-lite-error/147495 "2008-09-02T18:49:10Z")

</div>

Hello everyone, In my controller, I put the following code: render :text =\> “Hello World!” It popped up with this error: " MissingSourceFile in BlogController#index no such file to load – sqlite3 RAILS\_ROOT: C:/In…

---

## [Concatenating parts of sql queris](https://www.ruby-forum.com/t/concatenating-parts-of-sql-queris/147515)

<div class="topic-metadata">

**Author:** [@blueshadow](https://www.ruby-forum.com/u/blueshadow)\
**Replies:** 4\
**Last updated:** [September 2, 2008, 5:56pm UTC](https://www.ruby-forum.com/t/concatenating-parts-of-sql-queris/147515 "2008-09-02T17:56:19Z")

</div>

I’m trying to develop a full-text search filtered by location and categories! My ugly way is to write different sql query’s for different solution, but i realize that is just stupid and ugly and didn’t do the job! Ni…

---

## [Checkin date issue](https://www.ruby-forum.com/t/checkin-date-issue/147503)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 3\
**Last updated:** [September 2, 2008, 5:33pm UTC](https://www.ruby-forum.com/t/checkin-date-issue/147503 "2008-09-02T17:33:36Z")

</div>

in my DB, I have records with a DateTIme ‘starting\_at’ date in my model, I wrote a named\_scope : named\_scope :planned\_on\_date, lambda {|aDate| {:conditions =\> \['state = ? AND starting\_at = ?', 'planned', aDate\]} } …

---

## [Delta index in Ultrasphinx](https://www.ruby-forum.com/t/delta-index-in-ultrasphinx/147510)

<div class="topic-metadata">

**Author:** [@anatoliy85](https://www.ruby-forum.com/u/anatoliy85)\
**Replies:** 2\
**Last updated:** [September 2, 2008, 5:23pm UTC](https://www.ruby-forum.com/t/delta-index-in-ultrasphinx/147510 "2008-09-02T17:23:25Z")

</div>

Hello, all I have a problem with delta index in Ultrasphinx. My configuration: app/models/user.rb: class User \< ActiveRecord::Base belongs\_to :user\_profile is\_indexed :fields =\> \[‘created\_at’, ‘e\_mail’\], :delta =\> …

---

## [Single Table HABTM](https://www.ruby-forum.com/t/single-table-habtm/147422)

<div class="topic-metadata">

**Author:** [@Valery\_K](https://www.ruby-forum.com/u/Valery_K)\
**Replies:** 10\
**Last updated:** [September 2, 2008, 4:33pm UTC](https://www.ruby-forum.com/t/single-table-habtm/147422 "2008-09-02T16:33:42Z")

</div>

Hi, all I’m looking for a trick how to get something like that: obj1 = SmthClass.new obj2 = SmthClass.new obj1.connections \<\< obj2 obj1.connections =\> obj2 obj2.connections =\> obj1 ?? PS: The first solv…

---

## [Use Rails to develop websites that frequently change layout](https://www.ruby-forum.com/t/use-rails-to-develop-websites-that-frequently-change-layout/147241)

<div class="topic-metadata">

**Author:** [@ruby\_tl](https://www.ruby-forum.com/u/ruby_tl)\
**Replies:** 7\
**Last updated:** [September 2, 2008, 4:30pm UTC](https://www.ruby-forum.com/t/use-rails-to-develop-websites-that-frequently-change-layout/147241 "2008-09-02T16:30:45Z")

</div>

Hi experts! I would like to develop a website using rails that projects can do the following things. Designers can freely and frequently design and change layout of pages (HTML,XHTML format) with a lot of dinamic d…

---

## [Validation messages without field names?](https://www.ruby-forum.com/t/validation-messages-without-field-names/147506)

<div class="topic-metadata">

**Author:** [@polarapfel](https://www.ruby-forum.com/u/polarapfel)\
**Replies:** 1\
**Last updated:** [September 2, 2008, 4:24pm UTC](https://www.ruby-forum.com/t/validation-messages-without-field-names/147506 "2008-09-02T16:24:53Z")

</div>

Hi everybody, I am getting involved deeper and deeper with Rails development and basically I love it. However, as Rails was born in the English language world, I find it rather demanding to develop with other end use…

---

## [Use clustering on multiple physical servers](https://www.ruby-forum.com/t/use-clustering-on-multiple-physical-servers/147498)

<div class="topic-metadata">

**Author:** [@Charles\_HENRY](https://www.ruby-forum.com/u/Charles_HENRY)\
**Replies:** 1\
**Last updated:** [September 2, 2008, 4:17pm UTC](https://www.ruby-forum.com/t/use-clustering-on-multiple-physical-servers/147498 "2008-09-02T16:17:49Z")

</div>

Hi, I want to know if it’s possible to have one application with clustering on 2 different servers ? With mongrel, I can run some clusters to improve performance on one physical server. But, if I have a physical prob…

---

## [Action timeout](https://www.ruby-forum.com/t/action-timeout/147508)

<div class="topic-metadata">

**Author:** [@flo\_w](https://www.ruby-forum.com/u/flo_w)\
**Replies:** 0\
**Last updated:** [September 2, 2008, 4:17pm UTC](https://www.ruby-forum.com/t/action-timeout/147508 "2008-09-02T16:17:49Z")

</div>

hi everyone! although i think i have a fairly common problem - i could not find a solution via google right away. basically i have an action sending out emails that has to run quite long while being accessed through…

---

## [Generate rails models from an existing database](https://www.ruby-forum.com/t/generate-rails-models-from-an-existing-database/147442)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [September 2, 2008, 4:00pm UTC](https://www.ruby-forum.com/t/generate-rails-models-from-an-existing-database/147442 "2008-09-02T16:00:46Z")

</div>

Hi, I have used a tool to create a rails conform database, meaning that all the tables and columns follow the rails conventions. The foreign keys and relationship tables/columns also exist. Now I would like to genera…

---

## [Accessing session data in plugin controller](https://www.ruby-forum.com/t/accessing-session-data-in-plugin-controller/147502)

<div class="topic-metadata">

**Author:** [@aycko](https://www.ruby-forum.com/u/aycko)\
**Replies:** 0\
**Last updated:** [September 2, 2008, 3:49pm UTC](https://www.ruby-forum.com/t/accessing-session-data-in-plugin-controller/147502 "2008-09-02T15:49:02Z")

</div>

I have the following problem. My application uses sessions to reference the current user with user\_id. It is implemented in rails 1.2.5. Now I created a plugin which needs to access session\[:user\_id\]. Due to security…

---

## [Writing new controllers](https://www.ruby-forum.com/t/writing-new-controllers/147494)

<div class="topic-metadata">

**Author:** [@avanetix](https://www.ruby-forum.com/u/avanetix)\
**Replies:** 6\
**Last updated:** [September 2, 2008, 3:49pm UTC](https://www.ruby-forum.com/t/writing-new-controllers/147494 "2008-09-02T15:49:02Z")

</div>

I have created new rails-project. I start Mongrel. I add to project: app/controllers/my\_first\_controller.rb class MyFirstController \< ApplicationController def index render :text =\> ‘My First Controller’ end end …

---

## [Change Log level at runtime](https://www.ruby-forum.com/t/change-log-level-at-runtime/146700)

<div class="topic-metadata">

**Author:** [@neeti](https://www.ruby-forum.com/u/neeti)\
**Replies:** 4\
**Last updated:** [September 2, 2008, 2:49pm UTC](https://www.ruby-forum.com/t/change-log-level-at-runtime/146700 "2008-09-02T14:49:46Z")

</div>

Hi All I am using Rails default logger in my application. Is it possible to change the log level of the app dynamically i.e without restarting the server ? Thanks in advance Neeti

---

## [How to validate TimeWithZone model attribute](https://www.ruby-forum.com/t/how-to-validate-timewithzone-model-attribute/147224)

<div class="topic-metadata">

**Author:** [@rgagnon](https://www.ruby-forum.com/u/rgagnon)\
**Replies:** 1\
**Last updated:** [September 2, 2008, 2:38pm UTC](https://www.ruby-forum.com/t/how-to-validate-timewithzone-model-attribute/147224 "2008-09-02T14:38:09Z")

</div>

I try to validate the format of a date field but as soon a user set a wrong date format in the form, the date (TimeWithZone) is set to nil so I can’t validate the format. Any suggestions?

---

## [Can not fetch data from other table](https://www.ruby-forum.com/t/can-not-fetch-data-from-other-table/147468)

<div class="topic-metadata">

**Author:** [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Replies:** 26\
**Last updated:** [September 2, 2008, 2:07pm UTC](https://www.ruby-forum.com/t/can-not-fetch-data-from-other-table/147468 "2008-09-02T14:07:47Z")

</div>

hello , problem while i am trying this query @location=Location.find\_by\_sql(“SELECT DISTINCT country FROM locations WHERE state = ‘#{@site\_details.location}’”) in @site\_details.location i am having city name Newyork …

---

## [Find conditions syntax problem](https://www.ruby-forum.com/t/find-conditions-syntax-problem/147487)

<div class="topic-metadata">

**Author:** [@tyliong](https://www.ruby-forum.com/u/tyliong)\
**Replies:** 3\
**Last updated:** [September 2, 2008, 2:03pm UTC](https://www.ruby-forum.com/t/find-conditions-syntax-problem/147487 "2008-09-02T14:03:51Z")

</div>

Hi, could u guys please help me with this syntax: SglineItem.find(:first, :conditions =\> {\[‘sguser\_id =?’, params\[:ad\]\], \[‘groceries\_id =?’, params\[:bd\]\]}) Full Code: def add\_to\_cart if SglineItem.find(:first, :cond…

---

## [Lightbox2 javascript file behavior different on web server and localhost?](https://www.ruby-forum.com/t/lightbox2-javascript-file-behavior-different-on-web-server-and-localhost/147427)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 4\
**Last updated:** [September 2, 2008, 12:15pm UTC](https://www.ruby-forum.com/t/lightbox2-javascript-file-behavior-different-on-web-server-and-localhost/147427 "2008-09-02T12:15:55Z")

</div>

I am running locally and using Lightbox2 ( Lightbox2) to open a picture from a thumbnail see site : http://www.ceramique-isabelle.fr (see ceramiques, click thumbnail, then click the left picture) in my layout I…

---

## [Basics questions on rails](https://www.ruby-forum.com/t/basics-questions-on-rails/147401)

<div class="topic-metadata">

**Author:** [@vpredoehl](https://www.ruby-forum.com/u/vpredoehl)\
**Replies:** 3\
**Last updated:** [September 2, 2008, 12:11pm UTC](https://www.ruby-forum.com/t/basics-questions-on-rails/147401 "2008-09-02T12:11:47Z")

</div>

Hello, I started to use rails few weeks ago, and I have got basic question about it. There is a way to keep my form filled, after submit it (for example if I get errors) ? I would like to create a ‘tree’ with my…

---

## [Rails Validation query](https://www.ruby-forum.com/t/rails-validation-query/147482)

<div class="topic-metadata">

**Author:** [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Replies:** 1\
**Last updated:** [September 2, 2008, 12:00pm UTC](https://www.ruby-forum.com/t/rails-validation-query/147482 "2008-09-02T12:00:03Z")

</div>

Hello Friend, Need a help… Whenever i am doing rails validation its give me an output at \*3 errors prohibited this customer from being saved There were problems with the following fields: Enter your name Enter your…

---

## [Can't install file\_column](https://www.ruby-forum.com/t/cant-install-file-column/147366)

<div class="topic-metadata">

**Author:** [@steveluscher](https://www.ruby-forum.com/u/steveluscher)\
**Replies:** 6\
**Last updated:** [September 2, 2008, 11:55am UTC](https://www.ruby-forum.com/t/cant-install-file-column/147366 "2008-09-02T11:55:54Z")

</div>

Hi - I just tried to install file\_column and can’t install it according to the original instructions anymore. The original instructions (at http://www.kanthak.net/opensource/file\_column/) say to do this: ./script/pl…

---

## [Rails Plugin Question. Help Please..?](https://www.ruby-forum.com/t/rails-plugin-question-help-please/147469)

<div class="topic-metadata">

**Author:** [@rahil](https://www.ruby-forum.com/u/rahil)\
**Replies:** 1\
**Last updated:** [September 2, 2008, 11:53am UTC](https://www.ruby-forum.com/t/rails-plugin-question-help-please/147469 "2008-09-02T11:53:34Z")

</div>

Hi, I am confused a bit with Rails Plugins Procedure. Here is my confusion… I am using Netbeans 6.1 and happy with it. In case if i need any good plugin, then… what should i do… (1) Install it directly from website…

---

## [Last record from a has\_many association?](https://www.ruby-forum.com/t/last-record-from-a-has-many-association/147483)

<div class="topic-metadata">

**Author:** [@yachtman](https://www.ruby-forum.com/u/yachtman)\
**Replies:** 2\
**Last updated:** [September 2, 2008, 11:44am UTC](https://www.ruby-forum.com/t/last-record-from-a-has-many-association/147483 "2008-09-02T11:44:47Z")

</div>

I am trying to find a particular (in this case the last, or most recent) status for a user. As a user does certain things, new statuses are added (into users\_statuses). I want to be able to show a list of users with t…

---

## [Seledted option for select\_tag](https://www.ruby-forum.com/t/seledted-option-for-select-tag/147481)

<div class="topic-metadata">

**Author:** [@lostwarrior](https://www.ruby-forum.com/u/lostwarrior)\
**Replies:** 1\
**Last updated:** [September 2, 2008, 11:41am UTC](https://www.ruby-forum.com/t/seledted-option-for-select-tag/147481 "2008-09-02T11:41:51Z")

</div>

Hi iam using select\_tag i want selected\_option. i have made select \_tag like this \<%=select\_tag(‘name’, options\_for\_select({ :Relevance =\>‘Relevant’,:Date=\>‘Recent’}),:selected=\>params\[:name\].to\_s) %\> The generated h…

---

## [Newb q: Dynamic Dropdown Menu - Observe field - Ajax](https://www.ruby-forum.com/t/newb-q-dynamic-dropdown-menu-observe-field-ajax/147336)

<div class="topic-metadata">

**Author:** [@toro04](https://www.ruby-forum.com/u/toro04)\
**Replies:** 4\
**Last updated:** [September 2, 2008, 10:51am UTC](https://www.ruby-forum.com/t/newb-q-dynamic-dropdown-menu-observe-field-ajax/147336 "2008-09-02T10:51:34Z")

</div>

Hi Guys, I am trying to get my head around drop down menus and observe\_field (ajax?) I have : a ‘job’ model a vfxshotid model A job has\_many :vfxshotids A vfxshotid belongs\_to :job I need a page that has 2 drop d…

---

## [Get value of checkbox](https://www.ruby-forum.com/t/get-value-of-checkbox/147478)

<div class="topic-metadata">

**Author:** [@johdax](https://www.ruby-forum.com/u/johdax)\
**Replies:** 1\
**Last updated:** [September 2, 2008, 10:31am UTC](https://www.ruby-forum.com/t/get-value-of-checkbox/147478 "2008-09-02T10:31:21Z")

</div>

hi, i need to pass the value of a checkbox (simple boolean value 0/1) to a rails action. how do i do that. the value has nothing todo with any model used. i just want to pass the priority the mail should be sent, wit…

---

## [How write between query in rails](https://www.ruby-forum.com/t/how-write-between-query-in-rails/147477)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 2\
**Last updated:** [September 2, 2008, 9:55am UTC](https://www.ruby-forum.com/t/how-write-between-query-in-rails/147477 "2008-09-02T09:55:00Z")

</div>

I am trying something like this i want result which is between ? and ? with one condition but query gives me sql syntax exception. Group.find\_by\_sql(\[“select \* from groups where lft BETWEEN (?) and (?) and in\_directo…

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

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