# Rails

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

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

---

## [Redcloth](https://www.ruby-forum.com/t/redcloth/93070)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 4\
**Last updated:** [April 27, 2007, 7:03am UTC](https://www.ruby-forum.com/t/redcloth/93070 "2007-04-27T07:03:09Z")

</div>

how to format an html string to redcloth format, the opposite function to to\_html ?

---

## [Caching one page breaks another](https://www.ruby-forum.com/t/caching-one-page-breaks-another/93073)

<div class="topic-metadata">

**Author:** [@ingoweiss](https://www.ruby-forum.com/u/ingoweiss)\
**Replies:** 4\
**Last updated:** [April 27, 2007, 6:24am UTC](https://www.ruby-forum.com/t/caching-one-page-breaks-another/93073 "2007-04-27T06:24:06Z")

</div>

Hi, I am caching the index page for a resource using caches\_page :index. Now it looks like when I POST a resource to the same (index-)URL which should be routed to the ‘create’ method, the rails app doesn’t even proc…

---

## [Webrick does not start](https://www.ruby-forum.com/t/webrick-does-not-start/93074)

<div class="topic-metadata">

**Author:** [@jacquie](https://www.ruby-forum.com/u/jacquie)\
**Replies:** 1\
**Last updated:** [April 27, 2007, 5:56am UTC](https://www.ruby-forum.com/t/webrick-does-not-start/93074 "2007-04-27T05:56:38Z")

</div>

I have ruby on rails on windows xp. Previously the program worked well on other windows machines. Then I export the code from the repository to my computer. I ran the command" ruby script\\server", it gave me =\> Bootin…

---

## [Belongs\_to validating presence of foreign key](https://www.ruby-forum.com/t/belongs-to-validating-presence-of-foreign-key/93075)

<div class="topic-metadata">

**Author:** [@zmoazeni](https://www.ruby-forum.com/u/zmoazeni)\
**Replies:** 0\
**Last updated:** [April 27, 2007, 5:49am UTC](https://www.ruby-forum.com/t/belongs-to-validating-presence-of-foreign-key/93075 "2007-04-27T05:49:04Z")

</div>

I’ve recently read http://blog.teksol.info/articles/2006/03/08/do-not-validate-belongs\_to-or-else and I seem to be experiencing conflicting behavior with Rails 1.2.3 Parent Table: id Integer name String Child Table…

---

## [Link\_to :method =\> post](https://www.ruby-forum.com/t/link-to-method-post/93042)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 3\
**Last updated:** [April 27, 2007, 5:35am UTC](https://www.ruby-forum.com/t/link-to-method-post/93042 "2007-04-27T05:35:03Z")

</div>

hi, how to pass values when using a link\_to with method =\> post? regards.

---

## [NameError - uninitialized constant](https://www.ruby-forum.com/t/nameerror-uninitialized-constant/93069)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 3\
**Last updated:** [April 27, 2007, 4:32am UTC](https://www.ruby-forum.com/t/nameerror-uninitialized-constant/93069 "2007-04-27T04:32:44Z")

</div>

I just deployed my application on MediaTemple. I get the following error and I am not sure what is wrong. Processing ApplicationController#editor (for 68.147.211.95 at 2007-04-26 18:38:40) \[GET\] Session ID: df1f7ec62…

---

## [Is inheiritance possible in layouts?](https://www.ruby-forum.com/t/is-inheiritance-possible-in-layouts/93068)

<div class="topic-metadata">

**Author:** [@dave](https://www.ruby-forum.com/u/dave)\
**Replies:** 2\
**Last updated:** [April 27, 2007, 4:06am UTC](https://www.ruby-forum.com/t/is-inheiritance-possible-in-layouts/93068 "2007-04-27T04:06:58Z")

</div>

Is it possible to have one layout extend another one? For example: normal.rhtml: \<%= @content\_for\_layout %\> extra\_stuff.rhtml somehow extends normal.rhtml: \<%= @content\_for\_layout %\> So any page that uses ext…

---

## [Assert\_select with respond\_to JS or xhr?](https://www.ruby-forum.com/t/assert-select-with-respond-to-js-or-xhr/92966)

<div class="topic-metadata">

**Author:** [@seb\_guard](https://www.ruby-forum.com/u/seb_guard)\
**Replies:** 2\
**Last updated:** [April 27, 2007, 2:17am UTC](https://www.ruby-forum.com/t/assert-select-with-respond-to-js-or-xhr/92966 "2007-04-27T02:17:28Z")

</div>

Hi everyone, I am a bit confused with xhr? and respond\_to. I have the folloing code in my view to update the ‘emails’ ID link\_to\_remote(image\_tag(“refresh”), :update =\> “emails”, :url =\> { :action =\> “list\_emails” }) …

---

## [Mapping column names in legacy schemata](https://www.ruby-forum.com/t/mapping-column-names-in-legacy-schemata/93058)

<div class="topic-metadata">

**Author:** [@tilo](https://www.ruby-forum.com/u/tilo)\
**Replies:** 1\
**Last updated:** [April 27, 2007, 1:59am UTC](https://www.ruby-forum.com/t/mapping-column-names-in-legacy-schemata/93058 "2007-04-27T01:59:51Z")

</div>

I have a legacy MySQL database with a weird naming convention - all table and column names have a prefix ‘\_’ , which is annoying, and some of the column names are misnomers. I would like to apply a pre-defined mappi…

---

## [ActiveRecord: mapping column names when using legacy schemat](https://www.ruby-forum.com/t/activerecord-mapping-column-names-when-using-legacy-schemat/93062)

<div class="topic-metadata">

**Author:** [@tilo](https://www.ruby-forum.com/u/tilo)\
**Replies:** 0\
**Last updated:** [April 27, 2007, 1:47am UTC](https://www.ruby-forum.com/t/activerecord-mapping-column-names-when-using-legacy-schemat/93062 "2007-04-27T01:47:51Z")

</div>

I have an ActiveRecord question… I have a legacy MySQL database with a weird naming convention - all table and column names have a prefix ‘\_’ , which is annoying, and some of the column names are plain misnomers. I…

---

## [Shouldn't this spec fail?](https://www.ruby-forum.com/t/shouldnt-this-spec-fail/93064)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 27, 2007, 1:36am UTC](https://www.ruby-forum.com/t/shouldnt-this-spec-fail/93064 "2007-04-27T01:36:50Z")

</div>

Shouldn’t the second spec fail? I’m trying to provide a default value in the model (I’m well aware this is normally the job of the controller, but it seems right to be the model in this case). Also, after\_initialize …

---

## [Dynamic scaffold not working](https://www.ruby-forum.com/t/dynamic-scaffold-not-working/93060)

<div class="topic-metadata">

**Author:** [@Felipe\_SodrSSSS\_Sil](https://www.ruby-forum.com/u/Felipe_SodrSSSS_Sil)\
**Replies:** 0\
**Last updated:** [April 27, 2007, 1:25am UTC](https://www.ruby-forum.com/t/dynamic-scaffold-not-working/93060 "2007-04-27T01:25:49Z")

</div>

Hi. I created a model called “player” using rake db:migration and right after went to try a dynamic scaffold to try it. So I created a controller called “admin” and the admin\_controller.rb became like this: class …

---

## [Grabbing banners from other sites](https://www.ruby-forum.com/t/grabbing-banners-from-other-sites/93055)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 27, 2007, 1:03am UTC](https://www.ruby-forum.com/t/grabbing-banners-from-other-sites/93055 "2007-04-27T01:03:48Z")

</div>

I want my banner ads to be rotated using ruby. So I try this \<%= link\_to\_remote( image\_tag(“graphics/ select01.gif”, :alt=\>‘Programming’, :size=\>‘100x20’, :border=\>0), :update =\> “select01\_div”, :url =\>{ :action =\> …

---

## [ActiveRecord association not seen in rake db:migrate](https://www.ruby-forum.com/t/activerecord-association-not-seen-in-rake-db-migrate/93017)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 2\
**Last updated:** [April 27, 2007, 1:03am UTC](https://www.ruby-forum.com/t/activerecord-association-not-seen-in-rake-db-migrate/93017 "2007-04-27T01:03:48Z")

</div>

I’m having trouble getting a migration to work. I’ve got an Account model with the following association: has\_one :last\_verified\_payment, :class\_name =\> ‘AuditEntry’, :order =\> ‘updated\_at DESC’, :conditions =\> “tr…

---

## [Silth](https://www.ruby-forum.com/t/silth/93053)

<div class="topic-metadata">

**Author:** [@Silth](https://www.ruby-forum.com/u/Silth)\
**Replies:** 0\
**Last updated:** [April 27, 2007, 12:52am UTC](https://www.ruby-forum.com/t/silth/93053 "2007-04-27T00:52:09Z")

</div>

Your site is brought in a spam a list!!! Write on removed\_email\_address@domain.invalid , what to remove your site from base

---

## [Beatify html?](https://www.ruby-forum.com/t/beatify-html/92957)

<div class="topic-metadata">

**Author:** [@alex](https://www.ruby-forum.com/u/alex)\
**Replies:** 4\
**Last updated:** [April 27, 2007, 12:08am UTC](https://www.ruby-forum.com/t/beatify-html/92957 "2007-04-27T00:08:44Z")

</div>

Is there any way to beatify the html that is emitted? Some of the html that I generate dynamically is poorly formatted, and it would be somewhat difficult to make it pretty (particularly in the context of the static …

---

## [Remote pagination using pagination\_links, link\_to\_remote and](https://www.ruby-forum.com/t/remote-pagination-using-pagination-links-link-to-remote-and/93050)

<div class="topic-metadata">

**Author:** [@johnlester](https://www.ruby-forum.com/u/johnlester)\
**Replies:** 0\
**Last updated:** [April 26, 2007, 11:51pm UTC](https://www.ruby-forum.com/t/remote-pagination-using-pagination-links-link-to-remote-and/93050 "2007-04-26T23:51:43Z")

</div>

I have two controllers, ‘ads’ and ‘markets’. In the ads controller I have a page that shows some partials from the markets view. I could create partials within the ‘ads’ view and methods in the ‘ads’ controller but …

---

## [What to use to do an action every minute?](https://www.ruby-forum.com/t/what-to-use-to-do-an-action-every-minute/93011)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 3\
**Last updated:** [April 26, 2007, 11:45pm UTC](https://www.ruby-forum.com/t/what-to-use-to-do-an-action-every-minute/93011 "2007-04-26T23:45:43Z")

</div>

Hey, I need to have a process running that will do something every minute (check value of some stuff). Is there something in Rails that I can use to do this?

---

## [Active Scaffold search error](https://www.ruby-forum.com/t/active-scaffold-search-error/93049)

<div class="topic-metadata">

**Author:** [@ryanoverton](https://www.ruby-forum.com/u/ryanoverton)\
**Replies:** 0\
**Last updated:** [April 26, 2007, 11:13pm UTC](https://www.ruby-forum.com/t/active-scaffold-search-error/93049 "2007-04-26T23:13:39Z")

</div>

I have active scaffold searching in fields, which works, but if there is more than 1 page of results and I click on next, or page 2 , it just defaults back to the way it was before the search params were put in, and …

---

## [Nuby - about date\_select, getting into DB](https://www.ruby-forum.com/t/nuby-about-date-select-getting-into-db/92965)

<div class="topic-metadata">

**Author:** [@sbeam](https://www.ruby-forum.com/u/sbeam)\
**Replies:** 4\
**Last updated:** [April 26, 2007, 10:58pm UTC](https://www.ruby-forum.com/t/nuby-about-date-select-getting-into-db/92965 "2007-04-26T22:58:38Z")

</div>

Hello Everyone, I am trying to use the date\_select() form helper method per AWDWROR. In the DB the column “entry\_date” is a datetime. So using the below form, in part ============ app/views/entry/index.rhtml === d…

---

## [From zero to working website in 3 days](https://www.ruby-forum.com/t/from-zero-to-working-website-in-3-days/93045)

<div class="topic-metadata">

**Author:** [@foto](https://www.ruby-forum.com/u/foto)\
**Replies:** 1\
**Last updated:** [April 26, 2007, 10:37pm UTC](https://www.ruby-forum.com/t/from-zero-to-working-website-in-3-days/93045 "2007-04-26T22:37:32Z")

</div>

From zero to working website in 3 days http://rails.teenwag.com/

---

## [Script/console and http-proxy with Authentication](https://www.ruby-forum.com/t/script-console-and-http-proxy-with-authentication/93044)

<div class="topic-metadata">

**Author:** [@k9ert](https://www.ruby-forum.com/u/k9ert)\
**Replies:** 0\
**Last updated:** [April 26, 2007, 10:15pm UTC](https://www.ruby-forum.com/t/script-console-and-http-proxy-with-authentication/93044 "2007-04-26T22:15:30Z")

</div>

Hi group, my gem ist working like a charm with http\_proxy (and friends) environment-variables as described here http://blog.pomozov.info/posts/the-end-of-gem-vs-proxy-war.html But I have a problem (on windows) with …

---

## [Components, no so bad? Please help](https://www.ruby-forum.com/t/components-no-so-bad-please-help/93037)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 2\
**Last updated:** [April 26, 2007, 10:13pm UTC](https://www.ruby-forum.com/t/components-no-so-bad-please-help/93037 "2007-04-26T22:13:30Z")

</div>

I understand rails very well and am not new to rails by any means. I’ve read numerous websites on rails components, etc. Based on my research and experience the only fallacy with components is the performance issues. …

---

## [Not loading authenticated system?](https://www.ruby-forum.com/t/not-loading-authenticated-system/93039)

<div class="topic-metadata">

**Author:** [@ivan\_at\_sustainable](https://www.ruby-forum.com/u/ivan_at_sustainable)\
**Replies:** 0\
**Last updated:** [April 26, 2007, 9:57pm UTC](https://www.ruby-forum.com/t/not-loading-authenticated-system/93039 "2007-04-26T21:57:28Z")

</div>

I’m getting a strange error on my mediatemple gridserver, that I’m not getting on my laptop. It seems like it’s not loading authenticatedsystem? but how I tell for sure? can anyone tell me where to start looking? Pro…

---

## [Rails Account Plan Model Best Practices](https://www.ruby-forum.com/t/rails-account-plan-model-best-practices/92860)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [April 26, 2007, 9:55pm UTC](https://www.ruby-forum.com/t/rails-account-plan-model-best-practices/92860 "2007-04-26T21:55:28Z")

</div>

I’m working on a rails application that will allow customers to sign up for an account with a particular plan (i.e. Free, Basic, Premium, etc) that defines what features are available, etc. Pretty standard stuff you s…

---

## [Authenticatedsystem not loading?](https://www.ruby-forum.com/t/authenticatedsystem-not-loading/93040)

<div class="topic-metadata">

**Author:** [@ivanstorck](https://www.ruby-forum.com/u/ivanstorck)\
**Replies:** 0\
**Last updated:** [April 26, 2007, 9:49pm UTC](https://www.ruby-forum.com/t/authenticatedsystem-not-loading/93040 "2007-04-26T21:49:59Z")

</div>

I’m getting a strange error on my mediatemple gridserver, that I’m not getting on my laptop. It seems like it’s not loading authenticatedsystem? but how I tell for sure? can anyone tell me where to start looking? Pro…

---

## [Gsub, help please](https://www.ruby-forum.com/t/gsub-help-please/93035)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 4\
**Last updated:** [April 26, 2007, 9:36pm UTC](https://www.ruby-forum.com/t/gsub-help-please/93035 "2007-04-26T21:36:37Z")

</div>

ok, been going on this for an hour now, and can not find a solution I want to find all content between tags in a string and replace the content of these with new formatted content. Any suggestions why the following c…

---

## [Moving multiple attributes to a new table - please help!](https://www.ruby-forum.com/t/moving-multiple-attributes-to-a-new-table-please-help/102761)

<div class="topic-metadata">

**Author:** [@merc](https://www.ruby-forum.com/u/merc)\
**Replies:** 5\
**Last updated:** [April 26, 2007, 9:22pm UTC](https://www.ruby-forum.com/t/moving-multiple-attributes-to-a-new-table-please-help/102761 "2007-04-26T21:22:25Z")

</div>

Okay I have a “list” view that contains a package inventory stored in a table called addpackages. Attributes include fname, lname, packagetype, email, phone, etc. Here’s what I’ve done already: When you click the …

---

## [Is this possible](https://www.ruby-forum.com/t/is-this-possible/93032)

<div class="topic-metadata">

**Author:** [@darushin](https://www.ruby-forum.com/u/darushin)\
**Replies:** 2\
**Last updated:** [April 26, 2007, 8:40pm UTC](https://www.ruby-forum.com/t/is-this-possible/93032 "2007-04-26T20:40:20Z")

</div>

Hello again I have a scenario where I am going to have a div that periodically updates information from the server (think like a newsfeed or stock ticker). I am using AJax on the browser side to accomplish this now. …

---

## [Question regarding form\_for](https://www.ruby-forum.com/t/question-regarding-form-for/93029)

<div class="topic-metadata">

**Author:** [@chell](https://www.ruby-forum.com/u/chell)\
**Replies:** 5\
**Last updated:** [April 26, 2007, 8:39pm UTC](https://www.ruby-forum.com/t/question-regarding-form-for/93029 "2007-04-26T20:39:20Z")

</div>

Hello, in my application, I have a new action inside of a controller. I also have a view called new.rhtml which contains a form constructed using the form\_for method. In the controller’s new action I have an instance …

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

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