# Rails

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

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

---

## [Restful routes](https://www.ruby-forum.com/t/restful-routes/180990)

<div class="topic-metadata">

**Author:** [@rgreen](https://www.ruby-forum.com/u/rgreen)\
**Replies:** 7\
**Last updated:** [January 5, 2010, 5:14am UTC](https://www.ruby-forum.com/t/restful-routes/180990 "2010-01-05T05:14:58Z")

</div>

If I created a route like this map.about ‘/about’, :controller =\> ‘pages’, :action =\> 'about And then added this to a different page \<%= link\_to “About”, about\_url %\> And decided to change my route to map.resources …

---

## [Should it be ext4 or ext3](https://www.ruby-forum.com/t/should-it-be-ext4-or-ext3/181076)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 1\
**Last updated:** [January 5, 2010, 5:12am UTC](https://www.ruby-forum.com/t/should-it-be-ext4-or-ext3/181076 "2010-01-05T05:12:02Z")

</div>

Hi I am trying to setup rubyonrails with a fresh installation of fedora linux.My question is should the partition type ext4 or ext3 for frdora? If it is ext4 and then installing rubyonrails is there any prolem? Tha…

---

## [\[job\] Wanted: Tech Advisor & Adventure &/or Social Change-Seeking Web app & Mobile app developers/](https://www.ruby-forum.com/t/job-wanted-tech-advisor-adventure-or-social-change-seeking-web-app-mobile-app-developers/181075)

<div class="topic-metadata">

**Author:** [@davidvGoliath](https://www.ruby-forum.com/u/davidvGoliath)\
**Replies:** 0\
**Last updated:** [January 5, 2010, 3:34am UTC](https://www.ruby-forum.com/t/job-wanted-tech-advisor-adventure-or-social-change-seeking-web-app-mobile-app-developers/181075 "2010-01-05T03:34:17Z")

</div>

Wanted: Adventure &/or Social Change-Seeking Web app & Mobil app developers/cofounders & Tech Advisor For unusual web app startup with huge social value and financial potential, and also for fun mobile apps. MISSION…

---

## [Newbie belongs\_to question](https://www.ruby-forum.com/t/newbie-belongs-to-question/181074)

<div class="topic-metadata">

**Author:** [@asoto](https://www.ruby-forum.com/u/asoto)\
**Replies:** 1\
**Last updated:** [January 5, 2010, 3:00am UTC](https://www.ruby-forum.com/t/newbie-belongs-to-question/181074 "2010-01-05T03:00:57Z")

</div>

Hey so all of the articles I read on this say that if you’re going to have two belong\_to’s to a single table ti should look something like this belongs\_to :player, :foreign\_key =\> “player\_one” belongs\_to :opponent, :…

---

## [User management by admin](https://www.ruby-forum.com/t/user-management-by-admin/181035)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 4\
**Last updated:** [January 5, 2010, 2:28am UTC](https://www.ruby-forum.com/t/user-management-by-admin/181035 "2010-01-05T02:28:45Z")

</div>

Hi My requirement is upon sign up a new user is created with the given emailid etc and the admin user get an email about this request.When he approves the request an email is sent to this user and now the user can lo…

---

## [Handling temporary generated image/graphs](https://www.ruby-forum.com/t/handling-temporary-generated-image-graphs/181070)

<div class="topic-metadata">

**Author:** [@jriisbovbjerg](https://www.ruby-forum.com/u/jriisbovbjerg)\
**Replies:** 1\
**Last updated:** [January 5, 2010, 1:25am UTC](https://www.ruby-forum.com/t/handling-temporary-generated-image-graphs/181070 "2010-01-05T01:25:28Z")

</div>

Hi, I have an application where I based on users selections generate a dataset for them to download and a graph describing this data. The graph is made with gnuplot and work really well - no problems :slight\_smile: B…

---

## [Advanced Rails training class with Wolfram Arnold in SF, Jan 25th](https://www.ruby-forum.com/t/advanced-rails-training-class-with-wolfram-arnold-in-sf-jan-25th/181072)

<div class="topic-metadata">

**Author:** [@Rooz](https://www.ruby-forum.com/u/Rooz)\
**Replies:** 0\
**Last updated:** [January 5, 2010, 1:15am UTC](https://www.ruby-forum.com/t/advanced-rails-training-class-with-wolfram-arnold-in-sf-jan-25th/181072 "2010-01-05T01:15:31Z")

</div>

Hi All, We have our Advanced Rails training class with Wolfram Arnold coming up in January with additional dates in March and June. Wolfram is one of the top Rails experts in the US and frequently presents at Ruby an…

---

## [Dynamic Models and WordPress MU](https://www.ruby-forum.com/t/dynamic-models-and-wordpress-mu/181071)

<div class="topic-metadata">

**Author:** [@shware1](https://www.ruby-forum.com/u/shware1)\
**Replies:** 0\
**Last updated:** [January 5, 2010, 1:14am UTC](https://www.ruby-forum.com/t/dynamic-models-and-wordpress-mu/181071 "2010-01-05T01:14:56Z")

</div>

Hi, WordPress is a PHP-based blogging engine. The MU version supports multiple blogs in the same database (as opposed to just one in the basic WordPress app) I’m looking at writing some Rails-based admin modules to…

---

## [Rails app hung up in the database layer?](https://www.ruby-forum.com/t/rails-app-hung-up-in-the-database-layer/181068)

<div class="topic-metadata">

**Author:** [@robb](https://www.ruby-forum.com/u/robb)\
**Replies:** 0\
**Last updated:** [January 5, 2010, 12:46am UTC](https://www.ruby-forum.com/t/rails-app-hung-up-in-the-database-layer/181068 "2010-01-05T00:46:15Z")

</div>

That’s the best way I can describe the weird behavior I’m seeing. Anybody else ever seen this? A page that has no database calls (verified in mysql log), shows this in its log: Completed in 2ms (View: 1, DB: 663) Wh…

---

## [Juggernaut issues](https://www.ruby-forum.com/t/juggernaut-issues/181067)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 0\
**Last updated:** [January 4, 2010, 10:48pm UTC](https://www.ruby-forum.com/t/juggernaut-issues/181067 "2010-01-04T22:48:02Z")

</div>

hi, im running a simple chatapplication to explore the juggernaut server and its features. everything is working fine, but the “issue” im facing is that, whenever juggernaut “kicks is”, the browser, FF, gives me thos…

---

## [Ferret search in production](https://www.ruby-forum.com/t/ferret-search-in-production/181005)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 9\
**Last updated:** [January 4, 2010, 10:14pm UTC](https://www.ruby-forum.com/t/ferret-search-in-production/181005 "2010-01-04T22:14:05Z")

</div>

Hi there, after recently deploying my app, I have noticed that the search results are not being displayed… When I look in my app, I also notice that the apps content (search criterea) is not being indexed, so I dont …

---

## [Not being able to access the info loaded by config.yml](https://www.ruby-forum.com/t/not-being-able-to-access-the-info-loaded-by-config-yml/181062)

<div class="topic-metadata">

**Author:** [@qaswm](https://www.ruby-forum.com/u/qaswm)\
**Replies:** 2\
**Last updated:** [January 4, 2010, 9:51pm UTC](https://www.ruby-forum.com/t/not-being-able-to-access-the-info-loaded-by-config-yml/181062 "2010-01-04T21:51:47Z")

</div>

Hi, I have the following app\_config.yml in rails\_root/config/ development: &non\_production\_settings :bit\_ly: :login: “xxxxxxxxx” :api\_key: “xxxxxxxxx” :history: “0” test: \<\<: \*non\_production\_settings production: …

---

## [Single app with https and http section](https://www.ruby-forum.com/t/single-app-with-https-and-http-section/175116)

<div class="topic-metadata">

**Author:** [@fero](https://www.ruby-forum.com/u/fero)\
**Replies:** 1\
**Last updated:** [January 4, 2010, 9:02pm UTC](https://www.ruby-forum.com/t/single-app-with-https-and-http-section/175116 "2010-01-04T21:02:22Z")

</div>

Hello nerds, I want to discuss approach to this situation: I have one rails app and I want to make only part of, not whole app, running on https. I know, that https is question of configuring web server. The only sol…

---

## [XML and XML schema support](https://www.ruby-forum.com/t/xml-and-xml-schema-support/181060)

<div class="topic-metadata">

**Author:** [@vihrao](https://www.ruby-forum.com/u/vihrao)\
**Replies:** 0\
**Last updated:** [January 4, 2010, 8:26pm UTC](https://www.ruby-forum.com/t/xml-and-xml-schema-support/181060 "2010-01-04T20:26:59Z")

</div>

I want to convert web page in to a XML document and validate it with a XML Schema.Can I do this with Ruby on Rails framework. Please let me know. – You received this message because you are subscribed to the Google …

---

## [Noob question .each problem](https://www.ruby-forum.com/t/noob-question-each-problem/181004)

<div class="topic-metadata">

**Author:** [@radu\_puspana](https://www.ruby-forum.com/u/radu_puspana)\
**Replies:** 7\
**Last updated:** [January 4, 2010, 6:56pm UTC](https://www.ruby-forum.com/t/noob-question-each-problem/181004 "2010-01-04T18:56:15Z")

</div>

First, A Happy New Year to you all Second : this is my login action form the admin controller: def login if request.post? user = User.authenticate(params\[:name\], params\[:password\]) if user if user.banned\_status ==…

---

## [Good luck new year!](https://www.ruby-forum.com/t/good-luck-new-year/181053)

<div class="topic-metadata">

**Author:** [@ple\_mazako](https://www.ruby-forum.com/u/ple_mazako)\
**Replies:** 1\
**Last updated:** [January 4, 2010, 4:57pm UTC](https://www.ruby-forum.com/t/good-luck-new-year/181053 "2010-01-04T16:57:26Z")

</div>

Dear friends,how are you ? I found a website ( www.motonn.com), There are many products, laptop computers,mobile phones, digital cameras, DJ Equipment, etc. The most important is that the price is very cheap, and the…

---

## [Strange problem with I18n](https://www.ruby-forum.com/t/strange-problem-with-i18n/181052)

<div class="topic-metadata">

**Author:** [@inprogs](https://www.ruby-forum.com/u/inprogs)\
**Replies:** 0\
**Last updated:** [January 4, 2010, 4:34pm UTC](https://www.ruby-forum.com/t/strange-problem-with-i18n/181052 "2010-01-04T16:34:36Z")

</div>

So… I have got little problem with I18N on my production server… Development server using webrick when I make POST request (Sending form) with not existing translation I have got result like: translation missing: es,…

---

## [Named Scopes and Created At](https://www.ruby-forum.com/t/named-scopes-and-created-at/180958)

<div class="topic-metadata">

**Author:** [@jmjmjm](https://www.ruby-forum.com/u/jmjmjm)\
**Replies:** 5\
**Last updated:** [January 4, 2010, 3:47pm UTC](https://www.ruby-forum.com/t/named-scopes-and-created-at/180958 "2010-01-04T15:47:12Z")

</div>

I am using named scopes in my Post model to find recently published posts: named\_scope :recently\_published, :conditions =\> { :published =\> true }, :order =\> ‘created\_at DESC’ Posts HABTM tags, so I have my routes for…

---

## [Relating controllers... How to?](https://www.ruby-forum.com/t/relating-controllers-how-to/180860)

<div class="topic-metadata">

**Author:** [@RoRoRo](https://www.ruby-forum.com/u/RoRoRo)\
**Replies:** 2\
**Last updated:** [January 4, 2010, 3:37pm UTC](https://www.ruby-forum.com/t/relating-controllers-how-to/180860 "2010-01-04T15:37:50Z")

</div>

Hi, anyone can help me? I have 2 model : Error and Error Detail Error: Error\_name, tot\_errors Error Detail: Error\_name , details for error e.g. Error = Error\_type1 | 5 Error Detail = 5 lines with Error\_name=Error…

---

## [How to avoid code duplication when validating virtual attributes?](https://www.ruby-forum.com/t/how-to-avoid-code-duplication-when-validating-virtual-attributes/181028)

<div class="topic-metadata">

**Author:** [@nbits](https://www.ruby-forum.com/u/nbits)\
**Replies:** 1\
**Last updated:** [January 4, 2010, 2:09pm UTC](https://www.ruby-forum.com/t/how-to-avoid-code-duplication-when-validating-virtual-attributes/181028 "2010-01-04T14:09:22Z")

</div>

I recently had to do some work populating a model from complex virtual attributes. However, I also wanted to be able to leverage the validations framework to be able to add descriptions of errors that existed in virtu…

---

## [Resizing cells in Spreadsheet/Excel](https://www.ruby-forum.com/t/resizing-cells-in-spreadsheet-excel/181047)

<div class="topic-metadata">

**Author:** [@amabdelsalam](https://www.ruby-forum.com/u/amabdelsalam)\
**Replies:** 0\
**Last updated:** [January 4, 2010, 1:48pm UTC](https://www.ruby-forum.com/t/resizing-cells-in-spreadsheet-excel/181047 "2010-01-04T13:48:34Z")

</div>

Hi, I’m working on an application that generates excel sheet. I would like resize cells so that it contains long contents. I’m using spreadsheet/excel. How can I do this?

---

## [:include not working](https://www.ruby-forum.com/t/include-not-working/181046)

<div class="topic-metadata">

**Author:** [@krunal\_shah](https://www.ruby-forum.com/u/krunal_shah)\
**Replies:** 0\
**Last updated:** [January 4, 2010, 1:30pm UTC](https://www.ruby-forum.com/t/include-not-working/181046 "2010-01-04T13:30:09Z")

</div>

I have one model User. And i have used acts\_as\_commentable\_with\_threading plugin. I am firing query @comments = Comment.find(:all,:include =\> :user) it generate mysql properly. SELECT SQL\_NO\_CACHE \* FROM comments S…

---

## [Testing get :new](https://www.ruby-forum.com/t/testing-get-new/181025)

<div class="topic-metadata">

**Author:** [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Replies:** 4\
**Last updated:** [January 4, 2010, 11:17am UTC](https://www.ruby-forum.com/t/testing-get-new/181025 "2010-01-04T11:17:57Z")

</div>

I have a RESTful :new method to present a form. I have implemented this new method to use a params value params\[:site\_id\]. For example, the URL to this form would be : http://localhost:3000/reviews/new?site\_id=1005 …

---

## [Problem with downloading a generated Excel sheet](https://www.ruby-forum.com/t/problem-with-downloading-a-generated-excel-sheet/180997)

<div class="topic-metadata">

**Author:** [@amabdelsalam](https://www.ruby-forum.com/u/amabdelsalam)\
**Replies:** 2\
**Last updated:** [January 4, 2010, 10:34am UTC](https://www.ruby-forum.com/t/problem-with-downloading-a-generated-excel-sheet/180997 "2010-01-04T10:34:03Z")

</div>

Hello, I’m using the spreadsheet/excel gem to generate an excel sheet that I want user to be able to download it once it’s generated. Please take a look on the below code: @contacts=Contact.find(:all) if @contacts.s…

---

## [Rmagick on windows](https://www.ruby-forum.com/t/rmagick-on-windows/111421)

<div class="topic-metadata">

**Author:** [@dark-omen](https://www.ruby-forum.com/u/dark-omen)\
**Replies:** 26\
**Last updated:** [January 4, 2010, 10:00am UTC](https://www.ruby-forum.com/t/rmagick-on-windows/111421 "2010-01-04T10:00:46Z")

</div>

Is there any special way to set up rmagick on windows, I installed the gem, and i install imagemagick, but it says it can’t find a CORE\_… .dll file. Can someone give me a run down on how to do it on windows.

---

## [Test](https://www.ruby-forum.com/t/test/181034)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 0\
**Last updated:** [January 4, 2010, 9:13am UTC](https://www.ruby-forum.com/t/test/181034 "2010-01-04T09:13:38Z")

</div>

test

---

## [Behavior of find(:select =\> ...)](https://www.ruby-forum.com/t/behavior-of-find-select/180995)

<div class="topic-metadata">

**Author:** [@acreadinglist](https://www.ruby-forum.com/u/acreadinglist)\
**Replies:** 4\
**Last updated:** [January 4, 2010, 9:02am UTC](https://www.ruby-forum.com/t/behavior-of-find-select/180995 "2010-01-04T09:02:08Z")

</div>

Can someone clarify what type of object is returned from a find (:select =\> …) statement that only selects a subset of the records columns? If I have an object Foo with attributes A and B, and call find(:select =\> “A…

---

## [Model in subfolder, not missing constant error](https://www.ruby-forum.com/t/model-in-subfolder-not-missing-constant-error/180985)

<div class="topic-metadata">

**Author:** [@corin](https://www.ruby-forum.com/u/corin)\
**Replies:** 3\
**Last updated:** [January 4, 2010, 3:49am UTC](https://www.ruby-forum.com/t/model-in-subfolder-not-missing-constant-error/180985 "2010-01-04T03:49:36Z")

</div>

Hi all, I’m using the latest rails 2.3.5 and put some models in subfolders like this: models/my/details/texts.rb models/my/details/attributes.rb … The models themselves are defined like this: class My::Details::Te…

---

## [RESTful new method](https://www.ruby-forum.com/t/restful-new-method/180907)

<div class="topic-metadata">

**Author:** [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Replies:** 4\
**Last updated:** [January 4, 2010, 2:42am UTC](https://www.ruby-forum.com/t/restful-new-method/180907 "2010-01-04T02:42:54Z")

</div>

I have a RESTful implementation. The index view shows a table with two columns: 1) Site\_id and 2) URL to create a New Review for the corresponding site\_id. Each row of the table is rendered using a partial. If the …

---

## [Zip Code/Leading Zero's search problem](https://www.ruby-forum.com/t/zip-code-leading-zeros-search-problem/181015)

<div class="topic-metadata">

**Author:** [@jsoo](https://www.ruby-forum.com/u/jsoo)\
**Replies:** 6\
**Last updated:** [January 4, 2010, 12:41am UTC](https://www.ruby-forum.com/t/zip-code-leading-zeros-search-problem/181015 "2010-01-04T00:41:06Z")

</div>

Hey I’m running into an small issue with searching a zip codes table, where some zip codes contain 1 or more leading zeros. This problem could be fixed with some database level hacking – but I’d rather attack the pr…

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

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