# Rails

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

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

---

## [Smtp\_tls (MissingSourceFile) error](https://www.ruby-forum.com/t/smtp-tls-missingsourcefile-error/130534)

<div class="topic-metadata">

**Author:** [@skt](https://www.ruby-forum.com/u/skt)\
**Replies:** 0\
**Last updated:** [February 29, 2008, 3:54am UTC](https://www.ruby-forum.com/t/smtp-tls-missingsourcefile-error/130534 "2008-02-29T03:54:54Z")

</div>

Hello Folks, I am trying to setup a new dedicated virtual server with a hosting company. When I try to start my mongrel\_cluster I get the following error. Google serach on where to find smtp\_tls or if I am missing so…

---

## [Can the current version of scrubyt work with https pages and aspnetForm](https://www.ruby-forum.com/t/can-the-current-version-of-scrubyt-work-with-https-pages-and-aspnetform/130531)

<div class="topic-metadata">

**Author:** [@Virginian](https://www.ruby-forum.com/u/Virginian)\
**Replies:** 0\
**Last updated:** [February 29, 2008, 3:25am UTC](https://www.ruby-forum.com/t/can-the-current-version-of-scrubyt-work-with-https-pages-and-aspnetform/130531 "2008-02-29T03:25:33Z")

</div>

Can the current version of scrubyt work with https pages and aspnetForms? I am getting the following sss\_data = Scrubyt::Extractor.define do ?\> fetch ‘https://www.sss.gov/RegVer/wfVerification.aspx’ fil…

---

## [Update to flickr screencast tutorial](https://www.ruby-forum.com/t/update-to-flickr-screencast-tutorial/130521)

<div class="topic-metadata">

**Author:** [@LukeG](https://www.ruby-forum.com/u/LukeG)\
**Replies:** 1\
**Last updated:** [February 29, 2008, 2:24am UTC](https://www.ruby-forum.com/t/update-to-flickr-screencast-tutorial/130521 "2008-02-29T02:24:01Z")

</div>

I’m learning Rails and went through the flickr tutorial screencast at: http://media.rubyonrails.org/video/flickr-rails-ajax.mov Couldn’t get it to work with Rails 2.0 in Aptana, so made these changes to index.rhtml an…

---

## [Creating new directory for database.yml](https://www.ruby-forum.com/t/creating-new-directory-for-database-yml/130314)

<div class="topic-metadata">

**Author:** [@casid](https://www.ruby-forum.com/u/casid)\
**Replies:** 2\
**Last updated:** [February 29, 2008, 1:53am UTC](https://www.ruby-forum.com/t/creating-new-directory-for-database-yml/130314 "2008-02-29T01:53:47Z")

</div>

Hello RoR Developers, do you know how can I change the directory of database.yml. I want to call it from another directory, and also want to reach the directory name like #{RAILS\_ROOT} thanks for any commend and hel…

---

## [Returning 'column' objects like content\_columns does](https://www.ruby-forum.com/t/returning-column-objects-like-content-columns-does/130524)

<div class="topic-metadata">

**Author:** [@Leonard\_C](https://www.ruby-forum.com/u/Leonard_C)\
**Replies:** 1\
**Last updated:** [February 29, 2008, 1:34am UTC](https://www.ruby-forum.com/t/returning-column-objects-like-content-columns-does/130524 "2008-02-29T01:34:42Z")

</div>

I’m working on my first rails project after having gone through quite a bit of Ruby on Rails/Up and Running. I have a model ‘Configuration’. In the view that got scaffolded for me (I’m still back on rails version 1.2…

---

## [Listing?](https://www.ruby-forum.com/t/listing/130436)

<div class="topic-metadata">

**Author:** [@casid](https://www.ruby-forum.com/u/casid)\
**Replies:** 6\
**Last updated:** [February 29, 2008, 1:08am UTC](https://www.ruby-forum.com/t/listing/130436 "2008-02-29T01:08:03Z")

</div>

Hi RoR Developers I got tiny problem here. Actually I asked before but there was not any answer and asking again. I have template.yml file.\] get\_config=YAML.load(File.open("…/template.yml")) $temp1path=get\_config\[“t…

---

## [Functional testing with form\_authenticity\_token](https://www.ruby-forum.com/t/functional-testing-with-form-authenticity-token/130518)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 2\
**Last updated:** [February 28, 2008, 11:37pm UTC](https://www.ruby-forum.com/t/functional-testing-with-form-authenticity-token/130518 "2008-02-28T23:37:15Z")

</div>

hello, I am building a page that has many ajax calls on the page, so when I moved to rails 2.0, I, of course, noticed that my ajax calls stopped working. After some research, I came up with the following solution. I…

---

## [Observers question](https://www.ruby-forum.com/t/observers-question/130520)

<div class="topic-metadata">

**Author:** [@jeffct](https://www.ruby-forum.com/u/jeffct)\
**Replies:** 0\
**Last updated:** [February 28, 2008, 11:30pm UTC](https://www.ruby-forum.com/t/observers-question/130520 "2008-02-28T23:30:12Z")

</div>

Is it possible for observes to run more under the context of the application itself, rather than just like a model? I’ve found them very limited for doing things like sending email when the state of a model changes. S…

---

## [Redirect\_to or render](https://www.ruby-forum.com/t/redirect-to-or-render/130517)

<div class="topic-metadata">

**Author:** [@shaish](https://www.ruby-forum.com/u/shaish)\
**Replies:** 2\
**Last updated:** [February 28, 2008, 11:27pm UTC](https://www.ruby-forum.com/t/redirect-to-or-render/130517 "2008-02-28T23:27:15Z")

</div>

Hey, a newbie here. Can someone please give me a brief explanation whats the difference between the redirect\_to method and the render method and when should I use one instead of the other ? thnx alot !

---

## [Observe\_field not updating DOM](https://www.ruby-forum.com/t/observe-field-not-updating-dom/130399)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 3\
**Last updated:** [February 28, 2008, 9:17pm UTC](https://www.ruby-forum.com/t/observe-field-not-updating-dom/130399 "2008-02-28T21:17:37Z")

</div>

Hi- I’m trying to implement the elusive country-state connected select boxes. I have a controller: … def get\_states @states = State.find(:all, :conditions =\> {:country\_id =\> 1}) render :partial =\> “state\_options” …

---

## [How to control access to resourses (pictures and files) inside application?](https://www.ruby-forum.com/t/how-to-control-access-to-resourses-pictures-and-files-inside-application/129302)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [February 28, 2008, 8:04pm UTC](https://www.ruby-forum.com/t/how-to-control-access-to-resourses-pictures-and-files-inside-application/129302 "2008-02-28T20:04:48Z")

</div>

I’m writing an application that will have lots of images and files that should be accessed only by authorized people. Where should I put this files inside the directory tree to avoid users typing the direct path to th…

---

## [Disabling session when user is not logged in](https://www.ruby-forum.com/t/disabling-session-when-user-is-not-logged-in/130426)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 2\
**Last updated:** [February 28, 2008, 8:00pm UTC](https://www.ruby-forum.com/t/disabling-session-when-user-is-not-logged-in/130426 "2008-02-28T20:00:04Z")

</div>

I would like to avoid creating sessions for users who are not logged in. To that end, I have added the following to my ApplicationController: session :off, :if =\> Proc.new { |req| req.session\[:user\_id\].nil? } Based …

---

## [Reading multi-parameter assigned parameters (mouthful)](https://www.ruby-forum.com/t/reading-multi-parameter-assigned-parameters-mouthful/130495)

<div class="topic-metadata">

**Author:** [@brian](https://www.ruby-forum.com/u/brian)\
**Replies:** 0\
**Last updated:** [February 28, 2008, 7:44pm UTC](https://www.ruby-forum.com/t/reading-multi-parameter-assigned-parameters-mouthful/130495 "2008-02-28T19:44:39Z")

</div>

How do I read the multi-parameter parameter that date\*\_select creates? Right now it returns something like post\[comment\]\[time(1i)\], post\[comment\]\[time(2i)\], etc. Something like params\[:post\]\[:comment\] \[:time\] won’t w…

---

## [Rendering partial in iframe results in Bad URI](https://www.ruby-forum.com/t/rendering-partial-in-iframe-results-in-bad-uri/130388)

<div class="topic-metadata">

**Author:** [@rubylicious](https://www.ruby-forum.com/u/rubylicious)\
**Replies:** 5\
**Last updated:** [February 28, 2008, 7:38pm UTC](https://www.ruby-forum.com/t/rendering-partial-in-iframe-results-in-bad-uri/130388 "2008-02-28T19:38:04Z")

</div>

Rendering my partial in the src attribute of an iframe results in a bad uri message. When I don’t render the partial in the iframe it works just fine. Why does one work and not the other? Doesn’t Work Works \<%= r…

---

## [The sqlserver datetime issue... Anyone with a solution?](https://www.ruby-forum.com/t/the-sqlserver-datetime-issue-anyone-with-a-solution/86690)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 2\
**Last updated:** [February 28, 2008, 7:28pm UTC](https://www.ruby-forum.com/t/the-sqlserver-datetime-issue-anyone-with-a-solution/86690 "2008-02-28T19:28:27Z")

</div>

Hey :slight\_smile: I’m getting annoyed with this datetime issue in sqlserver. That is, not being able to use datetimes from before 1970 or after 2038. It’s pretty difficult to not just do that, as we have more than tw…

---

## [Redirect\_to with :anchor doesn't work in IE](https://www.ruby-forum.com/t/redirect-to-with-anchor-doesnt-work-in-ie/91344)

<div class="topic-metadata">

**Author:** [@walls](https://www.ruby-forum.com/u/walls)\
**Replies:** 1\
**Last updated:** [February 28, 2008, 6:54pm UTC](https://www.ruby-forum.com/t/redirect-to-with-anchor-doesnt-work-in-ie/91344 "2008-02-28T18:54:09Z")

</div>

Hi All, I’m redirecting to an action with an :anchor like: redirect\_to :action =\> "index", :anchor =\> @photo.id.to\_s index.rhtml is a page has many photos thumbnails and each photo would have the id as the “id” for …

---

## [Rake aborted! Don't know how to build task 'db\_schema\_dump'](https://www.ruby-forum.com/t/rake-aborted-dont-know-how-to-build-task-db-schema-dump/130488)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 1\
**Last updated:** [February 28, 2008, 6:39pm UTC](https://www.ruby-forum.com/t/rake-aborted-dont-know-how-to-build-task-db-schema-dump/130488 "2008-02-28T18:39:34Z")

</div>

Oh noes! What do I do? Just installed RoR and SQLite3 yesterday, watched a screencast that said the db\_schema\_dump will slaughter my enemies and make my poop smell like rainbows. Now I get rake telling me that it does…

---

## [How to configure db redundancy?](https://www.ruby-forum.com/t/how-to-configure-db-redundancy/130482)

<div class="topic-metadata">

**Author:** [@kusako](https://www.ruby-forum.com/u/kusako)\
**Replies:** 1\
**Last updated:** [February 28, 2008, 6:29pm UTC](https://www.ruby-forum.com/t/how-to-configure-db-redundancy/130482 "2008-02-28T18:29:07Z")

</div>

Hi, I have a rails application, part of which reads data from a slave. There is two slaves which is available for it to read from. Problem is, the replication occasionally stops on either of these slave. Therefore, I…

---

## [Deployment config and technology choice](https://www.ruby-forum.com/t/deployment-config-and-technology-choice/130389)

<div class="topic-metadata">

**Author:** [@Jodi](https://www.ruby-forum.com/u/Jodi)\
**Replies:** 3\
**Last updated:** [February 28, 2008, 6:17pm UTC](https://www.ruby-forum.com/t/deployment-config-and-technology-choice/130389 "2008-02-28T18:17:49Z")

</div>

Greeetings all, I’m revisiting our deployment technologies after having read Ezra’s book; hoping you don’t mind answer a few questions. Plus would love any thoughts from the other pros. We’ve presently deployed : ng…

---

## [Deploying rails with mod\_fastcgid on linux](https://www.ruby-forum.com/t/deploying-rails-with-mod-fastcgid-on-linux/130483)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [February 28, 2008, 5:24pm UTC](https://www.ruby-forum.com/t/deploying-rails-with-mod-fastcgid-on-linux/130483 "2008-02-28T17:24:08Z")

</div>

Hi, Has anyone had success installing ruby on rails with mod\_fastcgid on Apache 2 with Linux (I’m running Fedora Core 6 distro)? I followed the instructions here – http://journal.paul.querna.org/articles/2006/01/01/…

---

## [Nginx and virtual hosts](https://www.ruby-forum.com/t/nginx-and-virtual-hosts/130475)

<div class="topic-metadata">

**Author:** [@blinking\_bear](https://www.ruby-forum.com/u/blinking_bear)\
**Replies:** 1\
**Last updated:** [February 28, 2008, 5:06pm UTC](https://www.ruby-forum.com/t/nginx-and-virtual-hosts/130475 "2008-02-28T17:06:28Z")

</div>

I need to move a site from a dedicated freebsd box running a bunch of sites under apache to a CentOS VPS. The VPS will run one rails site and possibly a few wordpress blogs. My question is this, how easy is it to h…

---

## [Using globalize and partial-templates without controller](https://www.ruby-forum.com/t/using-globalize-and-partial-templates-without-controller/130473)

<div class="topic-metadata">

**Author:** [@der\_guido](https://www.ruby-forum.com/u/der_guido)\
**Replies:** 2\
**Last updated:** [February 28, 2008, 4:25pm UTC](https://www.ruby-forum.com/t/using-globalize-and-partial-templates-without-controller/130473 "2008-02-28T16:25:35Z")

</div>

Hi mates, What I try is using partials without a controller like: \<%= render :partial=\>“service/templates/my\_template” %\> that works… if the file is app/view/service/templates/\_my\_template.rhtml BUT now I will use t…

---

## [ActiveResource / Creating an API](https://www.ruby-forum.com/t/activeresource-creating-an-api/128174)

<div class="topic-metadata">

**Author:** [@ss\_1982](https://www.ruby-forum.com/u/ss_1982)\
**Replies:** 9\
**Last updated:** [February 28, 2008, 3:20pm UTC](https://www.ruby-forum.com/t/activeresource-creating-an-api/128174 "2008-02-28T15:20:19Z")

</div>

Hi, I am currently looking at creating an api for a new RESTful app built using rails 2.0. The two solutions I have come across seems to be ActiveResource and ActionWebServices. Although there seems to be plenty of d…

---

## [Rendering partials with local variables questions](https://www.ruby-forum.com/t/rendering-partials-with-local-variables-questions/130425)

<div class="topic-metadata">

**Author:** [@LAB](https://www.ruby-forum.com/u/LAB)\
**Replies:** 6\
**Last updated:** [February 28, 2008, 2:39pm UTC](https://www.ruby-forum.com/t/rendering-partials-with-local-variables-questions/130425 "2008-02-28T14:39:54Z")

</div>

Hello … I am using the acts\_as\_ratable plugin, but am trying to tweak it a bit … I have this code in my view: \<%= render :partial =\> “ratings/rate”, :locals =\> { :asset =\> current\_user, :thing\_id =\> @thing.id } %\> A…

---

## [Problem with page\<\<(...)](https://www.ruby-forum.com/t/problem-with-page/130451)

<div class="topic-metadata">

**Author:** [@ohneworte](https://www.ruby-forum.com/u/ohneworte)\
**Replies:** 2\
**Last updated:** [February 28, 2008, 1:44pm UTC](https://www.ruby-forum.com/t/problem-with-page/130451 "2008-02-28T13:44:04Z")

</div>

Hello together, I want to call my specific JavaScript-Functions in a RJS-File via “page\<\<(…)”. In Fact my code looks something like this (I am using Prototype!!): page\<\<(“new MyFunctions(‘param1’,‘param1’,{ ‘objParam…

---

## [A different approach to Jasper Reports in Rails](https://www.ruby-forum.com/t/a-different-approach-to-jasper-reports-in-rails/130459)

<div class="topic-metadata">

**Author:** [@guyb](https://www.ruby-forum.com/u/guyb)\
**Replies:** 0\
**Last updated:** [February 28, 2008, 1:27pm UTC](https://www.ruby-forum.com/t/a-different-approach-to-jasper-reports-in-rails/130459 "2008-02-28T13:27:00Z")

</div>

Hi All, I have several intranet applications running on different mongrel servers. I want a certain user to be able to design, using iReport, a few report designs based on XML data from the rails apps. This user sho…

---

## [Foreign keys not displayed for user input in create function](https://www.ruby-forum.com/t/foreign-keys-not-displayed-for-user-input-in-create-function/130448)

<div class="topic-metadata">

**Author:** [@Skywalker](https://www.ruby-forum.com/u/Skywalker)\
**Replies:** 1\
**Last updated:** [February 28, 2008, 1:19pm UTC](https://www.ruby-forum.com/t/foreign-keys-not-displayed-for-user-input-in-create-function/130448 "2008-02-28T13:19:54Z")

</div>

Newbie to Ruby - would appreciate it enormously if somebody could help me with this. In my create function, for a specific table, my foreign keys in that table are not visible for selection. However, at the time of wr…

---

## [\[ANN\] Ebb web server version 0.0.1](https://www.ruby-forum.com/t/ann-ebb-web-server-version-0-0-1/130456)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [February 28, 2008, 12:53pm UTC](https://www.ruby-forum.com/t/ann-ebb-web-server-version-0-0-1/130456 "2008-02-28T12:53:23Z")

</div>

Hi, Ebb aims to be a small and fast web server specifically for hosting web frameworks like Rails, Merb, and in the future Django. The design is similar to the Evented Mongrel web server; except instead of using Even…

---

## [\[ANN\] Ebb web server version 0.0.1](https://www.ruby-forum.com/t/ann-ebb-web-server-version-0-0-1/130454)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [February 28, 2008, 12:46pm UTC](https://www.ruby-forum.com/t/ann-ebb-web-server-version-0-0-1/130454 "2008-02-28T12:46:17Z")

</div>

Hi, Ebb aims to be a small and fast web server specifically for hosting web frameworks like Rails, Merb, and in the future Django. The design is similar to the Evented Mongrel web server; except instead of using Eve…

---

## [Redirect but without change the address](https://www.ruby-forum.com/t/redirect-but-without-change-the-address/130398)

<div class="topic-metadata">

**Author:** [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Replies:** 4\
**Last updated:** [February 28, 2008, 12:34pm UTC](https://www.ruby-forum.com/t/redirect-but-without-change-the-address/130398 "2008-02-28T12:34:28Z")

</div>

I want redirect to another controller but without change the address in the address bar of browser. Then is possible to render a page from another controller? Thanks

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

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