# Rails

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

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

---

## [What api's can ROR use?](https://www.ruby-forum.com/t/what-apis-can-ror-use/132609)

<div class="topic-metadata">

**Author:** [@megax](https://www.ruby-forum.com/u/megax)\
**Replies:** 1\
**Last updated:** [March 21, 2008, 9:59pm UTC](https://www.ruby-forum.com/t/what-apis-can-ror-use/132609 "2008-03-21T21:59:44Z")

</div>

I know ROR can use amazon, google maps and facebook but I was wondering what other api’s it can use. can anyone help?

---

## [HABTM population from text fields](https://www.ruby-forum.com/t/habtm-population-from-text-fields/132560)

<div class="topic-metadata">

**Author:** [@tobeannounced](https://www.ruby-forum.com/u/tobeannounced)\
**Replies:** 2\
**Last updated:** [March 21, 2008, 9:45pm UTC](https://www.ruby-forum.com/t/habtm-population-from-text-fields/132560 "2008-03-21T21:45:27Z")

</div>

Hi. I’m having problems wrapping my head around the use of HABTM. I just haven’t found a good enough reference for dealing with HABTM-linked models, and my business logic is full of them. In this case, I have a model …

---

## [Before\_filter question](https://www.ruby-forum.com/t/before-filter-question/132612)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 2\
**Last updated:** [March 21, 2008, 9:18pm UTC](https://www.ruby-forum.com/t/before-filter-question/132612 "2008-03-21T21:18:34Z")

</div>

Hi- So I am using before\_filter to manage authentication on my site. I see that you can add before\_filter to a controller to restrict access to all methods in that controller. Is it possible to limit access to a spe…

---

## [Graph implementation](https://www.ruby-forum.com/t/graph-implementation/132551)

<div class="topic-metadata">

**Author:** [@subhadip](https://www.ruby-forum.com/u/subhadip)\
**Replies:** 5\
**Last updated:** [March 21, 2008, 8:34pm UTC](https://www.ruby-forum.com/t/graph-implementation/132551 "2008-03-21T20:34:52Z")

</div>

i am new in rails… pls provide me some code how i show a simple chart/graph in web…pls provide some code…and the requirement how i install required gems…very urgent…

---

## [User "invoke" to test Action Web Services in Rails 2.0](https://www.ruby-forum.com/t/user-invoke-to-test-action-web-services-in-rails-2-0/132602)

<div class="topic-metadata">

**Author:** [@misleb](https://www.ruby-forum.com/u/misleb)\
**Replies:** 0\
**Last updated:** [March 21, 2008, 7:36pm UTC](https://www.ruby-forum.com/t/user-invoke-to-test-action-web-services-in-rails-2-0/132602 "2008-03-21T19:36:51Z")

</div>

Hi, I found this great plugin that “ports” AWS to Rails 2.0. But I’m having one problem. I am unable to use the “invoke” scaffold to test my new API methods. When I try to access /myapicontroller/invoke I get: Action…

---

## [Graph implementation](https://www.ruby-forum.com/t/graph-implementation/132598)

<div class="topic-metadata">

**Author:** [@subhadip](https://www.ruby-forum.com/u/subhadip)\
**Replies:** 0\
**Last updated:** [March 21, 2008, 7:06pm UTC](https://www.ruby-forum.com/t/graph-implementation/132598 "2008-03-21T19:06:24Z")

</div>

thank u,but i require one view and one controller code for running gruff,and how will i show it in browser… please help with simple code…

---

## [How to generate a pdf without pushing a button](https://www.ruby-forum.com/t/how-to-generate-a-pdf-without-pushing-a-button/132596)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 0\
**Last updated:** [March 21, 2008, 6:39pm UTC](https://www.ruby-forum.com/t/how-to-generate-a-pdf-without-pushing-a-button/132596 "2008-03-21T18:39:48Z")

</div>

I want to generate a pdf with pdf-writer. All the pdfs I have generated in past were like: format.pdf do send\_data IncidenceDrawer.draw(@incidence, @logs, @relincs), :filename =\> ‘incidences/@incidence.id.pdf’, :type…

---

## [Help with datetime](https://www.ruby-forum.com/t/help-with-datetime/132589)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 2\
**Last updated:** [March 21, 2008, 6:29pm UTC](https://www.ruby-forum.com/t/help-with-datetime/132589 "2008-03-21T18:29:58Z")

</div>

I need to do this: If Time.now is: =\> Fri Mar 21 18:19:14 +0100 2008 I want to obatain 7 days more, like: =\> Fri Mar 28 18:19:14 +0100 2008 So I can then compare this two dates.

---

## [Partial templates question](https://www.ruby-forum.com/t/partial-templates-question/132590)

<div class="topic-metadata">

**Author:** [@bob](https://www.ruby-forum.com/u/bob)\
**Replies:** 0\
**Last updated:** [March 21, 2008, 6:24pm UTC](https://www.ruby-forum.com/t/partial-templates-question/132590 "2008-03-21T18:24:04Z")

</div>

hi, i have a question about partial templates. there is a table - Topics, it has one field - Title. there is a text\_field form with button, and a partial template under the form. they are in the same template. the pa…

---

## [Loading large amounts of text data in fixtures](https://www.ruby-forum.com/t/loading-large-amounts-of-text-data-in-fixtures/132521)

<div class="topic-metadata">

**Author:** [@squeegy](https://www.ruby-forum.com/u/squeegy)\
**Replies:** 1\
**Last updated:** [March 21, 2008, 6:02pm UTC](https://www.ruby-forum.com/t/loading-large-amounts-of-text-data-in-fixtures/132521 "2008-03-21T18:02:00Z")

</div>

I am trying to load the contents of XML files into a mediumtext field from a fixture. heres my fixture so far, with some erb to help me out. \<% def load\_owl(name) data = File.read("#{RAILS\_ROOT}/spec/fixtures/#{name…

---

## [Web 2.0 Secrets Revealed](https://www.ruby-forum.com/t/web-2-0-secrets-revealed/132585)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 21, 2008, 6:01pm UTC](https://www.ruby-forum.com/t/web-2-0-secrets-revealed/132585 "2008-03-21T18:01:32Z")

</div>

Almost everybody seems to be talking about Web 2.0 these days. Never mind the fact that many people throw around the term without knowing too much about it. Do you do that too? Don’t worry. You’re not alone. But it’s …

---

## [RSS feed help](https://www.ruby-forum.com/t/rss-feed-help/132504)

<div class="topic-metadata">

**Author:** [@megax](https://www.ruby-forum.com/u/megax)\
**Replies:** 5\
**Last updated:** [March 21, 2008, 5:45pm UTC](https://www.ruby-forum.com/t/rss-feed-help/132504 "2008-03-21T17:45:37Z")

</div>

I have created a xml file that I want to change into and rss feed and then parse it so it looks anyother rss feed. The file takes data from my database but I am at a loss on how to get this to an rss feed, can anyone …

---

## [Render :image =\> "whatever.png"?](https://www.ruby-forum.com/t/render-image-whatever-png/132574)

<div class="topic-metadata">

**Author:** [@namealreadytaken](https://www.ruby-forum.com/u/namealreadytaken)\
**Replies:** 1\
**Last updated:** [March 21, 2008, 5:36pm UTC](https://www.ruby-forum.com/t/render-image-whatever-png/132574 "2008-03-21T17:36:03Z")

</div>

In other words, is there some way to get Ajax to push an image? Is there some reason this just can’t work? Or does it work already and my eyes skipped over it? It would be nice, sometimes, to have RMagick or whatever…

---

## [Undefined method \`phone\_format'](https://www.ruby-forum.com/t/undefined-method-phone-format/132573)

<div class="topic-metadata">

**Author:** [@Jattie](https://www.ruby-forum.com/u/Jattie)\
**Replies:** 1\
**Last updated:** [March 21, 2008, 5:35pm UTC](https://www.ruby-forum.com/t/undefined-method-phone-format/132573 "2008-03-21T17:35:28Z")

</div>

I have a live rails application running on a public website and I am trying to get this up and running on a development/test system to make some minor changes offline. I’ve managed to set this up on instantrails versi…

---

## [Foreign key question](https://www.ruby-forum.com/t/foreign-key-question/132537)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 5\
**Last updated:** [March 21, 2008, 5:15pm UTC](https://www.ruby-forum.com/t/foreign-key-question/132537 "2008-03-21T17:15:11Z")

</div>

Hi- Say I have a db with following schema: MyTable: Id, name, user\_id, date User: id, name, description I know that I want to add “belongs\_to” in my “user” model but how can I enforce a proper constraint on the us…

---

## [Where do you prefer storing pids, logs, sockets?](https://www.ruby-forum.com/t/where-do-you-prefer-storing-pids-logs-sockets/132524)

<div class="topic-metadata">

**Author:** [@AnSSS\_bal\_Rojas](https://www.ruby-forum.com/u/AnSSS_bal_Rojas)\
**Replies:** 2\
**Last updated:** [March 21, 2008, 4:35pm UTC](https://www.ruby-forum.com/t/where-do-you-prefer-storing-pids-logs-sockets/132524 "2008-03-21T16:35:15Z")

</div>

This is kind of a quick poll, when you setup your mongrel/thin/ wathever server, where do you prefer storing such things as pids, logs, sockets? Do you prefer something like: /var/run/thin (for pids) /var/log/thin (…

---

## [Development log on command prompt](https://www.ruby-forum.com/t/development-log-on-command-prompt/132408)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 1\
**Last updated:** [March 21, 2008, 4:31pm UTC](https://www.ruby-forum.com/t/development-log-on-command-prompt/132408 "2008-03-21T16:31:43Z")

</div>

At a dev machine in office, I can see all the development log on command prompt (windows xp) as I use application…displaying all the queries and stuff…but I just setup this new machine and it doesnt show any logs, it …

---

## [Add files to a gzip file](https://www.ruby-forum.com/t/add-files-to-a-gzip-file/186769)

<div class="topic-metadata">

**Author:** [@schnoid](https://www.ruby-forum.com/u/schnoid)\
**Replies:** 5\
**Last updated:** [March 21, 2008, 4:18pm UTC](https://www.ruby-forum.com/t/add-files-to-a-gzip-file/186769 "2008-03-21T16:18:09Z")

</div>

I’d like to add several separate files into a new Gzip file created within ruby. The code I’ve got at the moment is as follows: File.open(‘coursework\_submissions.gz’, ‘wb’) do |f| gz = Zlib::GzipWriter.new(f) @stude…

---

## [Nest RESTful routes with namespaces?](https://www.ruby-forum.com/t/nest-restful-routes-with-namespaces/132485)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 3\
**Last updated:** [March 21, 2008, 4:10pm UTC](https://www.ruby-forum.com/t/nest-restful-routes-with-namespaces/132485 "2008-03-21T16:10:46Z")

</div>

Hi all I have the following website structure: In the namespace “music” I have artists, styles and labels, where artists also acts as namespace containing types: map.namespace :music do |music| music.resources :arti…

---

## [Crazy @@subclasses magic and ActiveRecord](https://www.ruby-forum.com/t/crazy-subclasses-magic-and-activerecord/132568)

<div class="topic-metadata">

**Author:** [@Kevin\_Wu](https://www.ruby-forum.com/u/Kevin_Wu)\
**Replies:** 2\
**Last updated:** [March 21, 2008, 3:47pm UTC](https://www.ruby-forum.com/t/crazy-subclasses-magic-and-activerecord/132568 "2008-03-21T15:47:53Z")

</div>

I’m experiencing this exact behavior using STI http://www.techlists.org/archives/programming/railslist/2005-12/msg00202.shtml Here’s a concrete example. Say I have three classes that inherit from ActiveRecord, and I …

---

## [Linux and Ruby on Rails](https://www.ruby-forum.com/t/linux-and-ruby-on-rails/132380)

<div class="topic-metadata">

**Author:** [@Art\_S](https://www.ruby-forum.com/u/Art_S)\
**Replies:** 10\
**Last updated:** [March 21, 2008, 3:41pm UTC](https://www.ruby-forum.com/t/linux-and-ruby-on-rails/132380 "2008-03-21T15:41:58Z")

</div>

Hi. Can anybody help me in my question. Which distributions of Linux contain Ruby on Rails 2.0 or higher?

---

## [Funny video!](https://www.ruby-forum.com/t/funny-video/132569)

<div class="topic-metadata">

**Author:** [@tobi123](https://www.ruby-forum.com/u/tobi123)\
**Replies:** 0\
**Last updated:** [March 21, 2008, 3:13pm UTC](https://www.ruby-forum.com/t/funny-video/132569 "2008-03-21T15:13:35Z")

</div>

The best animation! http://rozrywka.yeba.pl/show.php?id=1028

---

## [Implementing google web search](https://www.ruby-forum.com/t/implementing-google-web-search/132567)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 21, 2008, 3:10pm UTC](https://www.ruby-forum.com/t/implementing-google-web-search/132567 "2008-03-21T15:10:36Z")

</div>

Hi all, I m implementing a google search in my current project, where the requirement is to implement the google based web search for the site( same workingwithrails\[dot\]com site). I have searched many topics but have…

---

## [How to save a pdf file in local](https://www.ruby-forum.com/t/how-to-save-a-pdf-file-in-local/132162)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 3\
**Last updated:** [March 21, 2008, 2:51pm UTC](https://www.ruby-forum.com/t/how-to-save-a-pdf-file-in-local/132162 "2008-03-21T14:51:18Z")

</div>

I would like to know how to save a pdf file (generated with pdf-writer) in a local folder.

---

## [Model equivalent for controllers/application.rb](https://www.ruby-forum.com/t/model-equivalent-for-controllers-application-rb/130728)

<div class="topic-metadata">

**Author:** [@jeanluca](https://www.ruby-forum.com/u/jeanluca)\
**Replies:** 7\
**Last updated:** [March 21, 2008, 2:51pm UTC](https://www.ruby-forum.com/t/model-equivalent-for-controllers-application-rb/130728 "2008-03-21T14:51:02Z")

</div>

Hi All I have a couple of functions in my modules which are identical. I would like to move them into a separate file and have them available in all modules. For example, the controllers already have one, application.…

---

## [How to delete nested resource?](https://www.ruby-forum.com/t/how-to-delete-nested-resource/132553)

<div class="topic-metadata">

**Author:** [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Replies:** 6\
**Last updated:** [March 21, 2008, 2:31pm UTC](https://www.ruby-forum.com/t/how-to-delete-nested-resource/132553 "2008-03-21T14:31:22Z")

</div>

Hi, I got News model that has\_one Asset. Asset belongs\_to News. AssetsController has only detroy method, asset is created in NewsController create action. Both resources are in admin namespace. Now I’d like to delete…

---

## [Find item in loaded activerecords without making db call](https://www.ruby-forum.com/t/find-item-in-loaded-activerecords-without-making-db-call/132552)

<div class="topic-metadata">

**Author:** [@betame342](https://www.ruby-forum.com/u/betame342)\
**Replies:** 2\
**Last updated:** [March 21, 2008, 12:16pm UTC](https://www.ruby-forum.com/t/find-item-in-loaded-activerecords-without-making-db-call/132552 "2008-03-21T12:16:39Z")

</div>

Hi, Does anyone know how to filtered/find item in loaded activerecords without making another call to database again? For example, I stored all domains in class variable as activerecords. Now, I want to filtered/find …

---

## [ERROR on ---rails:freeze:edge](https://www.ruby-forum.com/t/error-on-railsedge/196610)

<div class="topic-metadata">

**Author:** [@manish](https://www.ruby-forum.com/u/manish)\
**Replies:** 0\
**Last updated:** [March 21, 2008, 12:13pm UTC](https://www.ruby-forum.com/t/error-on-railsedge/196610 "2008-03-21T12:13:23Z")

</div>

Hi When i am using rake rails:freeze:edge it show errors rake aborted! No Rakefile found What is this error???

---

## [Use eager\_finder\_sql with attachment\_fu](https://www.ruby-forum.com/t/use-eager-finder-sql-with-attachment-fu/132555)

<div class="topic-metadata">

**Author:** [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Replies:** 0\
**Last updated:** [March 21, 2008, 11:43am UTC](https://www.ruby-forum.com/t/use-eager-finder-sql-with-attachment-fu/132555 "2008-03-21T11:43:57Z")

</div>

I use eager\_finder\_sql for the selects. How i can use this with attachment\_fu?

---

## [Rails migration from one server to another](https://www.ruby-forum.com/t/rails-migration-from-one-server-to-another/132488)

<div class="topic-metadata">

**Author:** [@ReK2](https://www.ruby-forum.com/u/ReK2)\
**Replies:** 3\
**Last updated:** [March 21, 2008, 10:59am UTC](https://www.ruby-forum.com/t/rails-migration-from-one-server-to-another/132488 "2008-03-21T10:59:10Z")

</div>

Anyone knows of a place were I can find how to migrate an already production rails setup to another one? Thanks.

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

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