# Rails

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

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

---

## [Reading pem file in ruby on rails](https://www.ruby-forum.com/t/reading-pem-file-in-ruby-on-rails/193775)

<div class="topic-metadata">

**Author:** [@sreevarshini\_k](https://www.ruby-forum.com/u/sreevarshini_k)\
**Replies:** 5\
**Last updated:** [August 26, 2010, 1:31pm UTC](https://www.ruby-forum.com/t/reading-pem-file-in-ruby-on-rails/193775 "2010-08-26T13:31:01Z")

</div>

hi, i have a certificate file in pem format. i need to read the pem file. Need help on how to read the certificate in ruby on rails Thanks

---

## [Dicom - ruby](https://www.ruby-forum.com/t/dicom-ruby/193908)

<div class="topic-metadata">

**Author:** [@adilbitk](https://www.ruby-forum.com/u/adilbitk)\
**Replies:** 0\
**Last updated:** [August 26, 2010, 1:03pm UTC](https://www.ruby-forum.com/t/dicom-ruby/193908 "2010-08-26T13:03:49Z")

</div>

Hi, I am struggling with dicom iamge view in rails app. I used dcim and rmagick gem. I followed http://dicom.rubyforge.org/tutorial1.htm and http://www.clubpacswestmi.net/ ,but didn’t happend anyt…

---

## [Dicom - ruby](https://www.ruby-forum.com/t/dicom-ruby/193905)

<div class="topic-metadata">

**Author:** [@adilbitk](https://www.ruby-forum.com/u/adilbitk)\
**Replies:** 0\
**Last updated:** [August 26, 2010, 1:03pm UTC](https://www.ruby-forum.com/t/dicom-ruby/193905 "2010-08-26T13:03:43Z")

</div>

Hi, I am struggling with dicom iamge view in rails app. I used dcim and rmagick gem. I followed http://dicom.rubyforge.org/tutorial1.htm and http://www.clubpacswestmi.net/ ,but didn’t happend anyt…

---

## [Update HABTM associations the restful way](https://www.ruby-forum.com/t/update-habtm-associations-the-restful-way/193854)

<div class="topic-metadata">

**Author:** [@dieguinsss](https://www.ruby-forum.com/u/dieguinsss)\
**Replies:** 4\
**Last updated:** [August 26, 2010, 12:50pm UTC](https://www.ruby-forum.com/t/update-habtm-associations-the-restful-way/193854 "2010-08-26T12:50:03Z")

</div>

Hello, Sorry if this has been answered in old posts, I couldn’t find anything. This has been killing me all the morning :frowning: I’m a bit new to REST, and I’m trying to model my app routes ‘restfully’, but I get lo…

---

## [Newbie Moving on to Rails](https://www.ruby-forum.com/t/newbie-moving-on-to-rails/193897)

<div class="topic-metadata">

**Author:** [@cinderello](https://www.ruby-forum.com/u/cinderello)\
**Replies:** 1\
**Last updated:** [August 26, 2010, 12:44pm UTC](https://www.ruby-forum.com/t/newbie-moving-on-to-rails/193897 "2010-08-26T12:44:54Z")

</div>

Hello everyone, Currently i have been in the process of learning ruby for about 6 months, so far so good =). Now, the project i have been working on, is pretty much done, unfortunately there is no user interface for “…

---

## [Advice on rating system](https://www.ruby-forum.com/t/advice-on-rating-system/193890)

<div class="topic-metadata">

**Author:** [@gregm](https://www.ruby-forum.com/u/gregm)\
**Replies:** 1\
**Last updated:** [August 26, 2010, 12:32pm UTC](https://www.ruby-forum.com/t/advice-on-rating-system/193890 "2010-08-26T12:32:01Z")

</div>

Hi, I’m doing a simple rating system, but I need and advice on the controllers. My system rates article. Should I add an action rate in the article controller or should I create a rate controller and add the action c…

---

## [@cart.add\_product(product)](https://www.ruby-forum.com/t/cart-add-product-product/193891)

<div class="topic-metadata">

**Author:** [@pravin\_mishra](https://www.ruby-forum.com/u/pravin_mishra)\
**Replies:** 1\
**Last updated:** [August 26, 2010, 12:14pm UTC](https://www.ruby-forum.com/t/cart-add-product-product/193891 "2010-08-26T12:14:27Z")

</div>

Any one can explain me??? in agile web development book in chapter Cart Creation depot\_f/app/models/cart.rb class Cart attr\_reader :items def initialize @items = \[\] end def add\_product(product) @items \<\< product …

---

## [Erb encoding problem](https://www.ruby-forum.com/t/erb-encoding-problem/193900)

<div class="topic-metadata">

**Author:** [@lexer](https://www.ruby-forum.com/u/lexer)\
**Replies:** 2\
**Last updated:** [August 26, 2010, 12:06pm UTC](https://www.ruby-forum.com/t/erb-encoding-problem/193900 "2010-08-26T12:06:51Z")

</div>

Hi guys, I’m using Rails 3. I want to display generated html fragment inside erb template \<%= “ Foo B.” %\> Rails encodes div tags. If I’m correct in Rails 2 \<%=h cause encoding. Seems that it was changed in Rails 3.…

---

## [Need clarification regarding OpenId Philisophy](https://www.ruby-forum.com/t/need-clarification-regarding-openid-philisophy/193899)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 0\
**Last updated:** [August 26, 2010, 11:19am UTC](https://www.ruby-forum.com/t/need-clarification-regarding-openid-philisophy/193899 "2010-08-26T11:19:26Z")

</div>

hi, i would like to integrate openid authentication. now, my current setup is that the user has to go through my own registration & activation pages to get his profile active. the way i understood eg railscasts etc…

---

## [Eager loading a has\_many :through (Rails3)](https://www.ruby-forum.com/t/eager-loading-a-has-many-through-rails3/193893)

<div class="topic-metadata">

**Author:** [@lance](https://www.ruby-forum.com/u/lance)\
**Replies:** 0\
**Last updated:** [August 26, 2010, 10:03am UTC](https://www.ruby-forum.com/t/eager-loading-a-has-many-through-rails3/193893 "2010-08-26T10:03:54Z")

</div>

Hello all, I’ve been trying out Rails 3 and can’t get past this issue: I have a simple has\_many :through: class Author \< ActiveRecord::Base has\_many :author\_series has\_many :series, :through =\> :author\_series end c…

---

## [\[JOB\] Sr. RoR Developer](https://www.ruby-forum.com/t/job-sr-ror-developer/193894)

<div class="topic-metadata">

**Author:** [@Drew\_G](https://www.ruby-forum.com/u/Drew_G)\
**Replies:** 0\
**Last updated:** [August 26, 2010, 10:02am UTC](https://www.ruby-forum.com/t/job-sr-ror-developer/193894 "2010-08-26T10:02:43Z")

</div>

Hello, I am doing a search for an LA Based startup company that is well funded and looking for an experienced Ruby Developer to be the #5 guy (This is a Sr. Role; work directly for the CTO) on their team; do you know…

---

## [Determining link geo-location](https://www.ruby-forum.com/t/determining-link-geo-location/193712)

<div class="topic-metadata">

**Author:** [@Rajinder\_Y](https://www.ruby-forum.com/u/Rajinder_Y)\
**Replies:** 5\
**Last updated:** [August 26, 2010, 9:36am UTC](https://www.ruby-forum.com/t/determining-link-geo-location/193712 "2010-08-26T09:36:58Z")

</div>

I am trying to figure out how to get the user’s geo-location when a request comes in after they’ve clicked on a link. Is there a easy way to do this in rails, also is the geo-location provided by the user’s browser, o…

---

## [Display records for today's date](https://www.ruby-forum.com/t/display-records-for-todays-date/193592)

<div class="topic-metadata">

**Author:** [@srikanth\_j](https://www.ruby-forum.com/u/srikanth_j)\
**Replies:** 9\
**Last updated:** [August 26, 2010, 9:00am UTC](https://www.ruby-forum.com/t/display-records-for-todays-date/193592 "2010-08-26T09:00:05Z")

</div>

Hi, I’m having User model & it has created\_at field. If i want to find all the users who are created today. How can i write the query? created\_at field has datetime in it. how can i search for records in current dat…

---

## [Paper clip plugin (dleting attachments)](https://www.ruby-forum.com/t/paper-clip-plugin-dleting-attachments/193886)

<div class="topic-metadata">

**Author:** [@merc](https://www.ruby-forum.com/u/merc)\
**Replies:** 3\
**Last updated:** [August 26, 2010, 8:01am UTC](https://www.ruby-forum.com/t/paper-clip-plugin-dleting-attachments/193886 "2010-08-26T08:01:28Z")

</div>

Hi All, i created an application to upload image files using paper clip plugin,its working successfully,alsoi had a page which l;ists all the images uploaded by the user.also there is a delete button to delete t…

---

## [Trying to find Rails' parameter parsing code](https://www.ruby-forum.com/t/trying-to-find-rails-parameter-parsing-code/193814)

<div class="topic-metadata">

**Author:** [@Adam\_Lassek](https://www.ruby-forum.com/u/Adam_Lassek)\
**Replies:** 25\
**Last updated:** [August 26, 2010, 6:30am UTC](https://www.ruby-forum.com/t/trying-to-find-rails-parameter-parsing-code/193814 "2010-08-26T06:30:26Z")

</div>

I’m trying to understand how Rails parses the form parameters into a nested Hash for the params object – can somebody point me in the right direction? It seems to have moved around a bit, especially with the 3.0 relea…

---

## [Trying to make a user list from 2 fields](https://www.ruby-forum.com/t/trying-to-make-a-user-list-from-2-fields/193591)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 19\
**Last updated:** [August 26, 2010, 6:23am UTC](https://www.ruby-forum.com/t/trying-to-make-a-user-list-from-2-fields/193591 "2010-08-26T06:23:13Z")

</div>

My model has two fields that I want in a customer list for an index page. They are name and second\_name. I need a way to combine them in a collection with their id numbers so the Edit links will work. Sounds like SQL,…

---

## [Find does not raise exception](https://www.ruby-forum.com/t/find-does-not-raise-exception/193844)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 2\
**Last updated:** [August 26, 2010, 5:57am UTC](https://www.ruby-forum.com/t/find-does-not-raise-exception/193844 "2010-08-26T05:57:44Z")

</div>

Hi I have the code def index @messages = message\_thread.messages end private def message\_thread begin current\_user.message\_threads.find(params\[:thread\_id\]) rescue ActiveRecord::RecordNotFound logger.warn “No pe…

---

## [Will\_paginate](https://www.ruby-forum.com/t/will-paginate/193782)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 4\
**Last updated:** [August 26, 2010, 4:59am UTC](https://www.ruby-forum.com/t/will-paginate/193782 "2010-08-26T04:59:31Z")

</div>

Dear Madam/ Sir, This is my first post, and I am stuck it for many months. I have below error msg: NoMethodError (undefined method paginate' for #\<Class:0x640ccc4\>): app/controllers/manage\_controller.rb:24:inlist’ He…

---

## [Strange problem with "each"](https://www.ruby-forum.com/t/strange-problem-with-each/193881)

<div class="topic-metadata">

**Author:** [@lynchnco](https://www.ruby-forum.com/u/lynchnco)\
**Replies:** 4\
**Last updated:** [August 26, 2010, 4:51am UTC](https://www.ruby-forum.com/t/strange-problem-with-each/193881 "2010-08-26T04:51:35Z")

</div>

Hello all, This is my first time setting up associations in Rails. A User :has\_many Jobs, and a Job :belongs\_to a User. Take a peak at this code and tell me what you think. For some reason, when I pull these jobs and…

---

## [Multiple joins to the same table/association with different conditions](https://www.ruby-forum.com/t/multiple-joins-to-the-same-table-association-with-different-conditions/193879)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 0\
**Last updated:** [August 26, 2010, 2:23am UTC](https://www.ruby-forum.com/t/multiple-joins-to-the-same-table-association-with-different-conditions/193879 "2010-08-26T02:23:49Z")

</div>

I’m looking for a nice(!) way to specify multiple joins to the same table where there are different conditions on each one. I was hoping for something like this class Model \< ActiveRecord::Base has\_many :things scop…

---

## [Sonia Gandhi](https://www.ruby-forum.com/t/sonia-gandhi/193874)

<div class="topic-metadata">

**Author:** [@manish\_belsare](https://www.ruby-forum.com/u/manish_belsare)\
**Replies:** 0\
**Last updated:** [August 25, 2010, 11:56pm UTC](https://www.ruby-forum.com/t/sonia-gandhi/193874 "2010-08-25T23:56:18Z")

</div>

Engine-Users mailing list removed\_email\_address@domain.invalid http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org

---

## [Paperclip not saving images](https://www.ruby-forum.com/t/paperclip-not-saving-images/193736)

<div class="topic-metadata">

**Author:** [@kaspir](https://www.ruby-forum.com/u/kaspir)\
**Replies:** 6\
**Last updated:** [August 25, 2010, 11:41pm UTC](https://www.ruby-forum.com/t/paperclip-not-saving-images/193736 "2010-08-25T23:41:56Z")

</div>

Hi, rails newb here. I’m trying to make a photo album app with rails. I’m using paperclip, because I need to upload multiple images at the same time. But when I upload a picture, paperclip isn’t saving it. I’m not get…

---

## [Know of a Linux or Windows editor / IDE with support for TDD for RoR?](https://www.ruby-forum.com/t/know-of-a-linux-or-windows-editor-ide-with-support-for-tdd-for-ror/193856)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 5\
**Last updated:** [August 25, 2010, 9:39pm UTC](https://www.ruby-forum.com/t/know-of-a-linux-or-windows-editor-ide-with-support-for-tdd-for-ror/193856 "2010-08-25T21:39:27Z")

</div>

I saw a demo of VisualStudio’s support for TDD for C++ (or C#, I can’t recall which) this past weekend and was impressed. Anybody know of an editor or IDE for Linux (Ubuntu specifically) or Windows that has built-in …

---

## [Bitnami Rubystack Remote SQLite DB](https://www.ruby-forum.com/t/bitnami-rubystack-remote-sqlite-db/193823)

<div class="topic-metadata">

**Author:** [@Xenio](https://www.ruby-forum.com/u/Xenio)\
**Replies:** 10\
**Last updated:** [August 25, 2010, 9:27pm UTC](https://www.ruby-forum.com/t/bitnami-rubystack-remote-sqlite-db/193823 "2010-08-25T21:27:35Z")

</div>

Is it possible to set up the database.yml file to connect to a sqlite database via http://?

---

## [Implementation of Sets in AR](https://www.ruby-forum.com/t/implementation-of-sets-in-ar/193858)

<div class="topic-metadata">

**Author:** [@Owain](https://www.ruby-forum.com/u/Owain)\
**Replies:** 5\
**Last updated:** [August 25, 2010, 8:09pm UTC](https://www.ruby-forum.com/t/implementation-of-sets-in-ar/193858 "2010-08-25T20:09:43Z")

</div>

I am at the very early design stages of a web service to implement a “booking engine”. I want it to be a generic in so far as the resource being booked could be anything, a tennis court, hotel room, ski chalet or air…

---

## [Rails3/memcached issue](https://www.ruby-forum.com/t/rails3-memcached-issue/193863)

<div class="topic-metadata">

**Author:** [@eddiewould](https://www.ruby-forum.com/u/eddiewould)\
**Replies:** 0\
**Last updated:** [August 25, 2010, 7:38pm UTC](https://www.ruby-forum.com/t/rails3-memcached-issue/193863 "2010-08-25T19:38:28Z")

</div>

Has anyone run into issues configuring memcached with rails3? It seems that my app always expects memcached to be on the default localhost:11211 even when my environment configuration says otherwise. Perhaps rails3 ne…

---

## [Storing a hash or array in the db](https://www.ruby-forum.com/t/storing-a-hash-or-array-in-the-db/193411)

<div class="topic-metadata">

**Author:** [@madisonkel](https://www.ruby-forum.com/u/madisonkel)\
**Replies:** 14\
**Last updated:** [August 25, 2010, 6:44pm UTC](https://www.ruby-forum.com/t/storing-a-hash-or-array-in-the-db/193411 "2010-08-25T18:44:38Z")

</div>

Hello – I know that I can use serialize to declare hashes or arrays in a class that need to be used in the db. From http://api.rubyonrails.org/classes/ActiveRecord/Base.html: class User \< ActiveRecord::Base serializ…

---

## [Passing a hash to a view](https://www.ruby-forum.com/t/passing-a-hash-to-a-view/193696)

<div class="topic-metadata">

**Author:** [@pezdude](https://www.ruby-forum.com/u/pezdude)\
**Replies:** 6\
**Last updated:** [August 25, 2010, 6:29pm UTC](https://www.ruby-forum.com/t/passing-a-hash-to-a-view/193696 "2010-08-25T18:29:35Z")

</div>

Hello everyone, New to programming and hoping someone can help with this. I’m trying to format a hash in a model so I can access the individual values in a view as follows. (I pulled most of the code out but this is …

---

## [Localizing dates](https://www.ruby-forum.com/t/localizing-dates/193833)

<div class="topic-metadata">

**Author:** [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Replies:** 4\
**Last updated:** [August 25, 2010, 6:03pm UTC](https://www.ruby-forum.com/t/localizing-dates/193833 "2010-08-25T18:03:48Z")

</div>

Hi How to localize the different methods in e.g. Date ? Tries to use Date.parse(str) with str in any language. I have a fix for my current problem, where str is a swedish date of the form 12 MAJ 1983; Date.parse(str…

---

## [Best Practices?](https://www.ruby-forum.com/t/best-practices/193841)

<div class="topic-metadata">

**Author:** [@mitch\_newbie](https://www.ruby-forum.com/u/mitch_newbie)\
**Replies:** 1\
**Last updated:** [August 25, 2010, 5:44pm UTC](https://www.ruby-forum.com/t/best-practices/193841 "2010-08-25T17:44:28Z")

</div>

I understand the practice of using yaml files for language translations for basic things like labels, links etc. But for large chunks of text that might contain a lot of markup for design etc what is the best way to o…

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

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