# Rails

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

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

---

## [Watchdog / Observe database and execute command if date = today](https://www.ruby-forum.com/t/watchdog-observe-database-and-execute-command-if-date-today/145268)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [August 7, 2008, 12:06pm UTC](https://www.ruby-forum.com/t/watchdog-observe-database-and-execute-command-if-date-today/145268 "2008-08-07T12:06:54Z")

</div>

Hey there I’m wondering if there is something like a watchdog in rails which keeps an eye on my database and executes specific commands when an entries date/time equals a certain point (like sending an email if the c…

---

## [Radio button observe field only triggers once](https://www.ruby-forum.com/t/radio-button-observe-field-only-triggers-once/137851)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 7\
**Last updated:** [August 7, 2008, 11:52am UTC](https://www.ruby-forum.com/t/radio-button-observe-field-only-triggers-once/137851 "2008-08-07T11:52:59Z")

</div>

Hi, If i add field observers to radio button fields they trigger once but then nothing after that. I have multiple fields in a form that i need to know if one of them changes and which spedific field. Below is an e…

---

## [Postgresql autoincrement in migration](https://www.ruby-forum.com/t/postgresql-autoincrement-in-migration/145147)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 2\
**Last updated:** [August 7, 2008, 11:06am UTC](https://www.ruby-forum.com/t/postgresql-autoincrement-in-migration/145147 "2008-08-07T11:06:34Z")

</div>

Hi I have a migration to be created with id start from say 100 for example.That is not from 1 So I tried like create\_table :problems, :options =\> “auto\_increment = 100” do |t| t.column :title, :text ------ end I…

---

## [Combining controller actions](https://www.ruby-forum.com/t/combining-controller-actions/145258)

<div class="topic-metadata">

**Author:** [@MC\_Andre](https://www.ruby-forum.com/u/MC_Andre)\
**Replies:** 0\
**Last updated:** [August 7, 2008, 9:04am UTC](https://www.ruby-forum.com/t/combining-controller-actions/145258 "2008-08-07T09:04:44Z")

</div>

Though I’m very new to Rails, I’ve been chugging along with the tutorials that are available. They’re quite fun. While building my own web apps, I’ve decided to use a different URL scheme than the default controller/a…

---

## [Recommendation for Performance Monitoring Service?](https://www.ruby-forum.com/t/recommendation-for-performance-monitoring-service/144892)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [August 7, 2008, 5:43am UTC](https://www.ruby-forum.com/t/recommendation-for-performance-monitoring-service/144892 "2008-08-07T05:43:38Z")

</div>

Can anyone recommend a performance/uptime monitoring service they use? I’ve been searching Google for an hour, but all I’ve been able to find are keynote.com, with its incomprehensibly thick corporate wording/ imaging…

---

## [Routing Error - No route matches "/rails/info/properties" with {:method=\>:get}](https://www.ruby-forum.com/t/routing-error-no-route-matches-rails-info-properties-with-method-get/145127)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [August 7, 2008, 5:29am UTC](https://www.ruby-forum.com/t/routing-error-no-route-matches-rails-info-properties-with-method-get/145127 "2008-08-07T05:29:01Z")

</div>

I see this seems to be a common error, but there doesn’t seem to be a definitive solution. I have recently installed Rails 2.0.2 on Netbsd and when I pull up the default Rails welcome screen and click on the ‘environm…

---

## [Nested include](https://www.ruby-forum.com/t/nested-include/145227)

<div class="topic-metadata">

**Author:** [@staypufd](https://www.ruby-forum.com/u/staypufd)\
**Replies:** 7\
**Last updated:** [August 7, 2008, 4:52am UTC](https://www.ruby-forum.com/t/nested-include/145227 "2008-08-07T04:52:47Z")

</div>

I’m trying to access data from the skins table through a nested include with no luck. The association is all through imageasset but I do not know how to figure it out. Any help is highly appreciated. ######the control…

---

## [How do I know if RoR is for me?](https://www.ruby-forum.com/t/how-do-i-know-if-ror-is-for-me/145243)

<div class="topic-metadata">

**Author:** [@randy](https://www.ruby-forum.com/u/randy)\
**Replies:** 3\
**Last updated:** [August 7, 2008, 4:32am UTC](https://www.ruby-forum.com/t/how-do-i-know-if-ror-is-for-me/145243 "2008-08-07T04:32:55Z")

</div>

I’m trying to assemble a web app w/database. My first. This is a personal project; not at the office. I’m an engineer, and I’ve done desktop programming for years (C/C++/ Delphi) with some local database experience. T…

---

## [Rails ActiveRecord migrations, without Rails?](https://www.ruby-forum.com/t/rails-activerecord-migrations-without-rails/145244)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 5\
**Last updated:** [August 7, 2008, 4:24am UTC](https://www.ruby-forum.com/t/rails-activerecord-migrations-without-rails/145244 "2008-08-07T04:24:38Z")

</div>

Are there any frameworks out there that execute migrations as well as Rails does? Or how difficult of a task would it be to extract the migration functionality? The practicality of having version control on changes m…

---

## [Activerecord problem](https://www.ruby-forum.com/t/activerecord-problem/145242)

<div class="topic-metadata">

**Author:** [@bishal](https://www.ruby-forum.com/u/bishal)\
**Replies:** 4\
**Last updated:** [August 7, 2008, 3:43am UTC](https://www.ruby-forum.com/t/activerecord-problem/145242 "2008-08-07T03:43:46Z")

</div>

I have the following method… def index @posts=Post.find(:all, :include =\> \[:user, :comments\]) for post in @posts puts “Post: #{post.title}” puts “Written by: #{post.user.title}” puts “Last comment on: #{post.commen…

---

## [Newbie can't figure out how to install restful\_authentication plugin](https://www.ruby-forum.com/t/newbie-cant-figure-out-how-to-install-restful-authentication-plugin/145020)

<div class="topic-metadata">

**Author:** [@playalpha](https://www.ruby-forum.com/u/playalpha)\
**Replies:** 1\
**Last updated:** [August 7, 2008, 3:34am UTC](https://www.ruby-forum.com/t/newbie-cant-figure-out-how-to-install-restful-authentication-plugin/145020 "2008-08-07T03:34:40Z")

</div>

I get this message when I try to install restful\_authentication plugin and I am stuck. I am running Windows Vista (don’t ask…). ruby script\\plugin install -r 3072 git://github.com/technoweenie/restful-authentication.…

---

## [Validate access to object field](https://www.ruby-forum.com/t/validate-access-to-object-field/145158)

<div class="topic-metadata">

**Author:** [@vanight](https://www.ruby-forum.com/u/vanight)\
**Replies:** 4\
**Last updated:** [August 7, 2008, 3:19am UTC](https://www.ruby-forum.com/t/validate-access-to-object-field/145158 "2008-08-07T03:19:07Z")

</div>

Suppose I have a Model called House with a field called name how can I validate the name field, I tried name in the validate method but it doesn’t work, i tried name, :name, House.name, I don’t know how I can validat…

---

## [Validate method](https://www.ruby-forum.com/t/validate-method/145146)

<div class="topic-metadata">

**Author:** [@vanight](https://www.ruby-forum.com/u/vanight)\
**Replies:** 4\
**Last updated:** [August 7, 2008, 3:19am UTC](https://www.ruby-forum.com/t/validate-method/145146 "2008-08-07T03:19:07Z")

</div>

Hi, I want to validate a string before saving, but I need a custom method because I want to change stuff in the string. I need to remove all whitespaces (front, back, inside) of @movie.filename How I can do it, @mov…

---

## [Pagination](https://www.ruby-forum.com/t/pagination/144502)

<div class="topic-metadata">

**Author:** [@jokrish](https://www.ruby-forum.com/u/jokrish)\
**Replies:** 3\
**Last updated:** [August 7, 2008, 3:19am UTC](https://www.ruby-forum.com/t/pagination/144502 "2008-08-07T03:19:07Z")

</div>

I want to do pagination in my project.For that i installed gem install mislav-will\_paginate --source http://gems.github.com/ . then i wrote require ‘will\_paginate’ in my enviornment.rb file. anything else required? …

---

## [Removing whitespaces from string](https://www.ruby-forum.com/t/removing-whitespaces-from-string/145150)

<div class="topic-metadata">

**Author:** [@vanight](https://www.ruby-forum.com/u/vanight)\
**Replies:** 2\
**Last updated:** [August 7, 2008, 3:19am UTC](https://www.ruby-forum.com/t/removing-whitespaces-from-string/145150 "2008-08-07T03:19:07Z")

</div>

Hi How can I remove all whitespaces from a string. even whitespace inside the string. Thanks

---

## [Way to alternate styles/classes?](https://www.ruby-forum.com/t/way-to-alternate-styles-classes/145239)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [August 7, 2008, 2:56am UTC](https://www.ruby-forum.com/t/way-to-alternate-styles-classes/145239 "2008-08-07T02:56:29Z")

</div>

Hi, I’m trying to alternate between two classes to apply to a partial. \<div id=“ec\_line\_items”\> \<%= render :partial =\> ‘summary\_line\_item’, :collection =\> @ec\_order.ec\_li…

---

## [Facebook(er) and Authentication Filters](https://www.ruby-forum.com/t/facebook-er-and-authentication-filters/145232)

<div class="topic-metadata">

**Author:** [@railsroad](https://www.ruby-forum.com/u/railsroad)\
**Replies:** 0\
**Last updated:** [August 7, 2008, 12:47am UTC](https://www.ruby-forum.com/t/facebook-er-and-authentication-filters/145232 "2008-08-07T00:47:36Z")

</div>

I am looking at this app: When in facebook, it knows to force the user to add the app when a link which requires it is appropriate, yet when viewing from www.mobtropolis.com, it knows to send the visitor to http://w…

---

## [Routing error with .xml](https://www.ruby-forum.com/t/routing-error-with-xml/145099)

<div class="topic-metadata">

**Author:** [@PeteSalty](https://www.ruby-forum.com/u/PeteSalty)\
**Replies:** 1\
**Last updated:** [August 6, 2008, 11:25pm UTC](https://www.ruby-forum.com/t/routing-error-with-xml/145099 "2008-08-06T23:25:56Z")

</div>

I’m trying to get a simple XML response going in one of my controllers so I thought it’d be as easy as adding something like respond\_to do |format| format.html format.xml {render :xml = \> @stuff.to\_xml } end to the…

---

## [Overwrite render/render\_file/render\_template to use db view](https://www.ruby-forum.com/t/overwrite-render-render-file-render-template-to-use-db-view/145175)

<div class="topic-metadata">

**Author:** [@betame342](https://www.ruby-forum.com/u/betame342)\
**Replies:** 2\
**Last updated:** [August 6, 2008, 11:12pm UTC](https://www.ruby-forum.com/t/overwrite-render-render-file-render-template-to-use-db-view/145175 "2008-08-06T23:12:26Z")

</div>

Hi, how to overwrite render/render\_file/render\_template to render view from database/string instead of file? Background: I am using theme\_support, which overwrite actionview “render\_file” method. I am confuse which …

---

## [Accessing data that passes through the model](https://www.ruby-forum.com/t/accessing-data-that-passes-through-the-model/145081)

<div class="topic-metadata">

**Author:** [@tinney](https://www.ruby-forum.com/u/tinney)\
**Replies:** 7\
**Last updated:** [August 6, 2008, 11:09pm UTC](https://www.ruby-forum.com/t/accessing-data-that-passes-through-the-model/145081 "2008-08-06T23:09:56Z")

</div>

Greetings! I’m working on building a custom validator within my Story model. As I understand it, before anything can be put into the database, that data has to go through the model and the various validators. Is there…

---

## [Activerecord search](https://www.ruby-forum.com/t/activerecord-search/145208)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 2\
**Last updated:** [August 6, 2008, 11:05pm UTC](https://www.ruby-forum.com/t/activerecord-search/145208 "2008-08-06T23:05:51Z")

</div>

def self.search(search, page) paginate\_by\_sql \[‘SELECT FROM posts WHERE #{time\_difference created\_at} \<= #{search}’\], :per\_page =\> 15, :page =\> page end I need something to this extent, where time\_difference is a hel…

---

## [Web service consuming other web services](https://www.ruby-forum.com/t/web-service-consuming-other-web-services/145215)

<div class="topic-metadata">

**Author:** [@nateleavitt](https://www.ruby-forum.com/u/nateleavitt)\
**Replies:** 1\
**Last updated:** [August 6, 2008, 11:02pm UTC](https://www.ruby-forum.com/t/web-service-consuming-other-web-services/145215 "2008-08-06T23:02:20Z")

</div>

So I have an action in a proxy controller that I created that basically just gets a request from an outside source takes the parameters and posts them to a different outside webservice gets the response and then posts…

---

## [Please help: Error during "gem install rails"](https://www.ruby-forum.com/t/please-help-error-during-gem-install-rails/145193)

<div class="topic-metadata">

**Author:** [@Pedro\_Carneiro\_Jr](https://www.ruby-forum.com/u/Pedro_Carneiro_Jr)\
**Replies:** 2\
**Last updated:** [August 6, 2008, 10:57pm UTC](https://www.ruby-forum.com/t/please-help-error-during-gem-install-rails/145193 "2008-08-06T22:57:39Z")

</div>

Hi, all. I have just downloaded Ruby and Ruby Gems and successfully installed both (ruby186-26.exe and setup.rb). But when I am with RubyGems loaded, and try to install all of Rails and its dependencies through the…

---

## [Link\_to with current value of text box](https://www.ruby-forum.com/t/link-to-with-current-value-of-text-box/145068)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [August 6, 2008, 10:44pm UTC](https://www.ruby-forum.com/t/link-to-with-current-value-of-text-box/145068 "2008-08-06T22:44:04Z")

</div>

Hi, I have a project in which I need to have a link\_to pass the current value of one text box to my controller. This link is outside my form, and I wish to do this without submitting the form (using javascript). I th…

---

## [Saving data of some other model](https://www.ruby-forum.com/t/saving-data-of-some-other-model/145222)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 0\
**Last updated:** [August 6, 2008, 10:19pm UTC](https://www.ruby-forum.com/t/saving-data-of-some-other-model/145222 "2008-08-06T22:19:00Z")

</div>

I have two models. Books Authos books… has\_many :authors now you can add author through authors controller after selecting a book. but I also want to be able to add author through book’s new/edit form. like there …

---

## [How to specify the response format in an asynchronous post action](https://www.ruby-forum.com/t/how-to-specify-the-response-format-in-an-asynchronous-post-action/145161)

<div class="topic-metadata">

**Author:** [@vince](https://www.ruby-forum.com/u/vince)\
**Replies:** 2\
**Last updated:** [August 6, 2008, 9:59pm UTC](https://www.ruby-forum.com/t/how-to-specify-the-response-format-in-an-asynchronous-post-action/145161 "2008-08-06T21:59:26Z")

</div>

I do asynchronous request via remote\_form\_for,I expect it will update partial content within current page, but it end up redirect to a new page,I guess may be cause controller consider ’ format.html’ was I need.so I w…

---

## [\[ANN\] Lone Star Ruby Conference 2008](https://www.ruby-forum.com/t/ann-lone-star-ruby-conference-2008/145214)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [August 6, 2008, 9:42pm UTC](https://www.ruby-forum.com/t/ann-lone-star-ruby-conference-2008/145214 "2008-08-06T21:42:07Z")

</div>

Greetings Just 5 more days for early registration! (Aug 10) LSRC could be the best conference you will attend this year. At this years conference you can take a tutorial on Merb or learn more about Test Driven Develo…

---

## [Method for formatting HTML nicely?](https://www.ruby-forum.com/t/method-for-formatting-html-nicely/145197)

<div class="topic-metadata">

**Author:** [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Replies:** 1\
**Last updated:** [August 6, 2008, 8:52pm UTC](https://www.ruby-forum.com/t/method-for-formatting-html-nicely/145197 "2008-08-06T20:52:19Z")

</div>

Anyone who knows a piece of Ruby code that takes a string of HTML as input and then outputs it nicely formatted like the following? Before: Ugly code ... After: Ugly code ... Any suggestio…

---

## [Dynamic Select Forms problem - using the Related Select Forms plugin](https://www.ruby-forum.com/t/dynamic-select-forms-problem-using-the-related-select-forms-plugin/145207)

<div class="topic-metadata">

**Author:** [@naevity](https://www.ruby-forum.com/u/naevity)\
**Replies:** 0\
**Last updated:** [August 6, 2008, 8:38pm UTC](https://www.ruby-forum.com/t/dynamic-select-forms-problem-using-the-related-select-forms-plugin/145207 "2008-08-06T20:38:16Z")

</div>

I’ve got a webapp that allows people to add locations. I’m trying to add international support, so I’m restructuring my add location form. I need for users to select a country, and then have the area auto populate wit…

---

## [Switching from 1.2.8 -\> 2.1: Scaffold doesn't display MySQL fields](https://www.ruby-forum.com/t/switching-from-1-2-8-2-1-scaffold-doesnt-display-mysql-fields/145205)

<div class="topic-metadata">

**Author:** [@Leerlaufprozess](https://www.ruby-forum.com/u/Leerlaufprozess)\
**Replies:** 1\
**Last updated:** [August 6, 2008, 8:34pm UTC](https://www.ruby-forum.com/t/switching-from-1-2-8-2-1-scaffold-doesnt-display-mysql-fields/145205 "2008-08-06T20:34:09Z")

</div>

Hi everyone, I’m currently trying to switch to the newest version of Rails and I’ve already set up a test application and connected it to MySQL using “– databse=mysql”. The database is named accordingly, so the app is …

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

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