# Rails

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

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

---

## [REXML::ParseException: Missing end tag for 'META' (got "HEAD](https://www.ruby-forum.com/t/rexml-missing-end-tag-for-meta-got-head/182067)

<div class="topic-metadata">

**Author:** [@smit\_shah](https://www.ruby-forum.com/u/smit_shah)\
**Replies:** 0\
**Last updated:** [January 22, 2010, 8:22am UTC](https://www.ruby-forum.com/t/rexml-missing-end-tag-for-meta-got-head/182067 "2010-01-22T08:22:48Z")

</div>

Hi, I am using flickr\_fu gem. When I try to get photos with following flickr = Flickr.new(File.join(RAILS\_ROOT, ‘config’, ‘flickr.yml’)) flickr.photos.search(:user\_id =\> user\_id) it gives me error like “REXML::Parse…

---

## [Newbie question - how set up working with a subset of data (e.g. user's data)?](https://www.ruby-forum.com/t/newbie-question-how-set-up-working-with-a-subset-of-data-e-g-users-data/181648)

<div class="topic-metadata">

**Author:** [@Souschef](https://www.ruby-forum.com/u/Souschef)\
**Replies:** 4\
**Last updated:** [January 22, 2010, 5:44am UTC](https://www.ruby-forum.com/t/newbie-question-how-set-up-working-with-a-subset-of-data-e-g-users-data/181648 "2010-01-22T05:44:26Z")

</div>

I’m new to rails & am building out an application to learn from. From a conceptual perspective, how would I go about working with a subset of data? For example, say I have an application with basic CRUD operations o…

---

## [Squirrel plugin produces different results between Passenger and Mongrel](https://www.ruby-forum.com/t/squirrel-plugin-produces-different-results-between-passenger-and-mongrel/182055)

<div class="topic-metadata">

**Author:** [@anmueller](https://www.ruby-forum.com/u/anmueller)\
**Replies:** 1\
**Last updated:** [January 22, 2010, 5:12am UTC](https://www.ruby-forum.com/t/squirrel-plugin-produces-different-results-between-passenger-and-mongrel/182055 "2010-01-22T05:12:49Z")

</div>

For some reason the Squirrel plugin is producing two different results between Mongrel and Passenger. Mongrel serves up the page with no problems and no errors in the development log. Passenger gives the following er…

---

## [Send SMS with rails application](https://www.ruby-forum.com/t/send-sms-with-rails-application/181985)

<div class="topic-metadata">

**Author:** [@preksha](https://www.ruby-forum.com/u/preksha)\
**Replies:** 7\
**Last updated:** [January 22, 2010, 4:48am UTC](https://www.ruby-forum.com/t/send-sms-with-rails-application/181985 "2010-01-22T04:48:55Z")

</div>

hi, I have added SMS sending functionality in my rails application.It works in my local pc, but on the live site sms is not sent to any one…so, is there any thing which i require to setup on the rails server?? thnak…

---

## [Two buttons on one line](https://www.ruby-forum.com/t/two-buttons-on-one-line/182036)

<div class="topic-metadata">

**Author:** [@pitosalas](https://www.ruby-forum.com/u/pitosalas)\
**Replies:** 2\
**Last updated:** [January 22, 2010, 12:17am UTC](https://www.ruby-forum.com/t/two-buttons-on-one-line/182036 "2010-01-22T00:17:50Z")

</div>

Can’t figure this one out: I’d like two buttons on the same line. If I do this: \<%= button\_to “New”, :action =\> “new” %\>\<%= button\_to “old”, :action =\> “old” %\> I get two lines (naturally.) But I’d like them side by …

---

## [Issue with rspec and url rewriting](https://www.ruby-forum.com/t/issue-with-rspec-and-url-rewriting/182054)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 0\
**Last updated:** [January 22, 2010, 12:17am UTC](https://www.ruby-forum.com/t/issue-with-rspec-and-url-rewriting/182054 "2010-01-22T00:17:15Z")

</div>

I tam trying to generate a RESTful route from inside a mailer testing spec, but I get an undefined method … I wrote the following code require File.dirname(FILE) + ‘/…/spec\_helper’ describe “Password Reset Instructio…

---

## [ActiveRecord Observers - can it only take one parameter?](https://www.ruby-forum.com/t/activerecord-observers-can-it-only-take-one-parameter/181866)

<div class="topic-metadata">

**Author:** [@ct9a](https://www.ruby-forum.com/u/ct9a)\
**Replies:** 5\
**Last updated:** [January 22, 2010, 12:17am UTC](https://www.ruby-forum.com/t/activerecord-observers-can-it-only-take-one-parameter/181866 "2010-01-22T00:17:15Z")

</div>

hi, guys, I refered to Action Mailer Basics — Ruby on Rails Guides and Ruby on Rails API I am a bit unclear about observers. Consider the set up below: model/part\_mailer.rb class PartMailer \< ActionMailer::Base @a…

---

## [Fitting two step creation in to a resource based design](https://www.ruby-forum.com/t/fitting-two-step-creation-in-to-a-resource-based-design/182016)

<div class="topic-metadata">

**Author:** [@reynar](https://www.ruby-forum.com/u/reynar)\
**Replies:** 4\
**Last updated:** [January 22, 2010, 12:07am UTC](https://www.ruby-forum.com/t/fitting-two-step-creation-in-to-a-resource-based-design/182016 "2010-01-22T00:07:53Z")

</div>

I’m struggling to see the natural solution to this with a nod to resources and keeping things restful. The problem is based around a Customer model with a fairly standard resource based controller (new, create, edit…) …

---

## [Architecture question](https://www.ruby-forum.com/t/architecture-question/182046)

<div class="topic-metadata">

**Author:** [@PierreW](https://www.ruby-forum.com/u/PierreW)\
**Replies:** 1\
**Last updated:** [January 21, 2010, 11:55pm UTC](https://www.ruby-forum.com/t/architecture-question/182046 "2010-01-21T23:55:00Z")

</div>

Hi guys, I need to make an “architecture” choice for my app. I believe it corresponds to a fairly common case, yet I can’t find much input online. I was hoping you could give me some recommendations or point me in th…

---

## [Noob problem around link\_to](https://www.ruby-forum.com/t/noob-problem-around-link-to/182048)

<div class="topic-metadata">

**Author:** [@radu\_puspana](https://www.ruby-forum.com/u/radu_puspana)\
**Replies:** 0\
**Last updated:** [January 21, 2010, 11:46pm UTC](https://www.ruby-forum.com/t/noob-problem-around-link-to/182048 "2010-01-21T23:46:48Z")

</div>

Good evening! Does anyone have a spare second to help a Ruby, Rails noob? I would really appreciate it. here is the chunk of code in my view relevant to my problem \<% if user.banned\_status == “false” %\> \<%= link\_to …

---

## [Iterating through an Instance Variable in my View](https://www.ruby-forum.com/t/iterating-through-an-instance-variable-in-my-view/182041)

<div class="topic-metadata">

**Author:** [@jackster](https://www.ruby-forum.com/u/jackster)\
**Replies:** 1\
**Last updated:** [January 21, 2010, 11:27pm UTC](https://www.ruby-forum.com/t/iterating-through-an-instance-variable-in-my-view/182041 "2010-01-21T23:27:29Z")

</div>

I have an instance variable called @ls which is an array that contains a list of files in a directory. When I call this instance variable in my view like this: \<%= @ls %\> It shows the entire list of files in the arra…

---

## [Can't install gem postgre for Ruby](https://www.ruby-forum.com/t/cant-install-gem-postgre-for-ruby/157792)

<div class="topic-metadata">

**Author:** [@raimon](https://www.ruby-forum.com/u/raimon)\
**Replies:** 8\
**Last updated:** [January 21, 2010, 11:18pm UTC](https://www.ruby-forum.com/t/cant-install-gem-postgre-for-ruby/157792 "2010-01-21T23:18:22Z")

</div>

Hello, I have two computers and in one I can install the gem as expected, but in the other, I can’t. The differences are that in the one that I can, I compiled&installed postgre myself, in the one that doesn’t work, …

---

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

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 3\
**Last updated:** [January 21, 2010, 10:42pm UTC](https://www.ruby-forum.com/t/test-units-failing/181982 "2010-01-21T22:42:59Z")

</div>

running rails 2.3, I do a rake test:units. No tests only default stuff. I get: You have a nil object when you didn’t expect it! You might have expected an instance of ActiveRecord::Base. The error occurred while ev…

---

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

<div class="topic-metadata">

**Author:** [@Dudebot](https://www.ruby-forum.com/u/Dudebot)\
**Replies:** 2\
**Last updated:** [January 21, 2010, 10:22pm UTC](https://www.ruby-forum.com/t/will-paginate/182038 "2010-01-21T22:22:30Z")

</div>

Does anyone have experience with will\_paginate? I’m trying to use it with acts\_as\_ferret. routes.rb … map.search ‘/search’, :controller =\> ‘notes’, :action =\> ‘search’ notes.rb … acts\_as\_ferret :fields =\> \[ ‘body’…

---

## [Link\_to popup pass parameter](https://www.ruby-forum.com/t/link-to-popup-pass-parameter/182033)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 0\
**Last updated:** [January 21, 2010, 9:50pm UTC](https://www.ruby-forum.com/t/link-to-popup-pass-parameter/182033 "2010-01-21T21:50:18Z")

</div>

hi, im poping up a window with: \<%= link\_to(“Add new Item”, “/bol\_lines/new”, :popup =\> \[‘window\_name’, ‘width=600,height=600’\]) %\> now, that link resides in teh edit view of the parent of the 1\<\>N asscoation. the c…

---

## [File upload UI / view](https://www.ruby-forum.com/t/file-upload-ui-view/182034)

<div class="topic-metadata">

**Author:** [@pitosalas](https://www.ruby-forum.com/u/pitosalas)\
**Replies:** 0\
**Last updated:** [January 21, 2010, 9:33pm UTC](https://www.ruby-forum.com/t/file-upload-ui-view/182034 "2010-01-21T21:33:20Z")

</div>

How do I define a view so that the page displays a simple link (e.g. “upload picture”) which upon clicking displays the browser’s standard file open dialog, so that, once the user clicks OK, the file is immediately up…

---

## [ANNOUNCE: railsposts.com - feeds collection for Rails developers](https://www.ruby-forum.com/t/announce-railsposts-com-feeds-collection-for-rails-developers/182032)

<div class="topic-metadata">

**Author:** [@gnowoel](https://www.ruby-forum.com/u/gnowoel)\
**Replies:** 0\
**Last updated:** [January 21, 2010, 8:57pm UTC](https://www.ruby-forum.com/t/announce-railsposts-com-feeds-collection-for-rails-developers/182032 "2010-01-21T20:57:01Z")

</div>

As a learner, I subscribed many blogs with Google Reader to catch up on news in Rails community, but the never-stop message flow overwhelmed me soon. The feature I really want is to discover what’s new and what’s hot…

---

## [Pop-upwindows](https://www.ruby-forum.com/t/pop-upwindows/182031)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 0\
**Last updated:** [January 21, 2010, 8:22pm UTC](https://www.ruby-forum.com/t/pop-upwindows/182031 "2010-01-21T20:22:30Z")

</div>

hi, im having 2 scenarios where i got ask to add pop-up widows to a rails app. 1) on is a regular index view, clicking on “add new item” should popup a new window. when i create a new item thorugh that window, i wan…

---

## [Overriding Date#to\_s](https://www.ruby-forum.com/t/overriding-date-to-s/182024)

<div class="topic-metadata">

**Author:** [@marnen](https://www.ruby-forum.com/u/marnen)\
**Replies:** 2\
**Last updated:** [January 21, 2010, 8:08pm UTC](https://www.ruby-forum.com/t/overriding-date-to-s/182024 "2010-01-21T20:08:56Z")

</div>

Hi everyone. I just ran into an issue which I solved in an…er…interesting way, and I’m trying to figure out if my solution is brilliant or terrible. Basically, I have a Date attribute in one of my AR models which I wo…

---

## [Nomethoderror when trying to create permissions](https://www.ruby-forum.com/t/nomethoderror-when-trying-to-create-permissions/182018)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 2\
**Last updated:** [January 21, 2010, 7:41pm UTC](https://www.ruby-forum.com/t/nomethoderror-when-trying-to-create-permissions/182018 "2010-01-21T19:41:52Z")

</div>

Hey all, I’m getting a nomethoderror: The error occurred while evaluating nil.staff\_admin? It occurs while I’m trying to create role-based permissions for specific actions, such as edit. So a staff admin may not be a…

---

## [Specifying a named scope in a mixin?](https://www.ruby-forum.com/t/specifying-a-named-scope-in-a-mixin/182021)

<div class="topic-metadata">

**Author:** [@ewaldkoenig](https://www.ruby-forum.com/u/ewaldkoenig)\
**Replies:** 0\
**Last updated:** [January 21, 2010, 6:10pm UTC](https://www.ruby-forum.com/t/specifying-a-named-scope-in-a-mixin/182021 "2010-01-21T18:10:48Z")

</div>

I would like to specify a named scope in a Module, to keep DRY. Example: class Article \< \< ActiveRecord::Base include ReferenceData … end module ReferenceData def self.included(base) base.extend(ClassMethods) end …

---

## [Syntax Highlighting](https://www.ruby-forum.com/t/syntax-highlighting/181996)

<div class="topic-metadata">

**Author:** [@jspencer78](https://www.ruby-forum.com/u/jspencer78)\
**Replies:** 5\
**Last updated:** [January 21, 2010, 6:04pm UTC](https://www.ruby-forum.com/t/syntax-highlighting/181996 "2010-01-21T18:04:58Z")

</div>

It’s something I’m sure most of us, if not all, use in our text editor or IDE of choice yet there are so many different schemes out there. Syntax highlighting gives us the ability to see what we’ve done and if we’ve …

---

## [Difference between ruby1.8.6 and 1.8.7](https://www.ruby-forum.com/t/difference-between-ruby1-8-6-and-1-8-7/181987)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 2\
**Last updated:** [January 21, 2010, 4:44pm UTC](https://www.ruby-forum.com/t/difference-between-ruby1-8-6-and-1-8-7/181987 "2010-01-21T16:44:11Z")

</div>

Hi I am using ruby1.8.6 for development in fedora12 since in yum repository the latest is that. Is there any problem if continuing with that and later migrating to 1.8.7 .Is there any big difference between them? Ple…

---

## [Command line ferret engine](https://www.ruby-forum.com/t/command-line-ferret-engine/181946)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 10\
**Last updated:** [January 21, 2010, 4:19pm UTC](https://www.ruby-forum.com/t/command-line-ferret-engine/181946 "2010-01-21T16:19:19Z")

</div>

Hi Champs, I am using this fuzzy query in ferret engine to search something. “Summary.find\_with\_ferret(@fuzzy\_query, {:limit =\> :all})” where Summary is a model class which contains each and every details of any item. …

---

## [Background task with rake...or better solution?](https://www.ruby-forum.com/t/background-task-with-rake-or-better-solution/181999)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [January 21, 2010, 4:10pm UTC](https://www.ruby-forum.com/t/background-task-with-rake-or-better-solution/181999 "2010-01-21T16:10:49Z")

</div>

Hello everybody, my new customer wants the new application that stay out of his way. To make it short he wants to drop images in a folder, and the app should be so clever to find them, make thumnails and other resized…

---

## [Scope problem in controller](https://www.ruby-forum.com/t/scope-problem-in-controller/181901)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 7\
**Last updated:** [January 21, 2010, 4:04pm UTC](https://www.ruby-forum.com/t/scope-problem-in-controller/181901 "2010-01-21T16:04:58Z")

</div>

I am writing a small helper to walk a hash or an array of arrays to find a nested key. (by the way, if there is an existing function for this in Ruby I will willingly take it instead). The call is this keywalk(colle…

---

## [Refresh automatically 2](https://www.ruby-forum.com/t/refresh-automatically-2/182015)

<div class="topic-metadata">

**Author:** [@erwillie](https://www.ruby-forum.com/u/erwillie)\
**Replies:** 0\
**Last updated:** [January 21, 2010, 3:45pm UTC](https://www.ruby-forum.com/t/refresh-automatically-2/182015 "2010-01-21T15:45:58Z")

</div>

Hello everyone!! I did my webpage with the meta tag for refresh my web. Now I need to refresh only a few objects.How can I do that?? ItÂ´s important for me that the mobiles will be ables to open this objects Thanks …

---

## [Array help](https://www.ruby-forum.com/t/array-help/181861)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 3\
**Last updated:** [January 21, 2010, 3:05pm UTC](https://www.ruby-forum.com/t/array-help/181861 "2010-01-21T15:05:11Z")

</div>

Hi… @list.each do |f| chatfile = ChatfileInfo.find\_all\_by\_id(f.chat\_id) end Is it possible to simplyfy the array iteration in one line… Thanks

---

## [Searching an array](https://www.ruby-forum.com/t/searching-an-array/181971)

<div class="topic-metadata">

**Author:** [@scrozier](https://www.ruby-forum.com/u/scrozier)\
**Replies:** 4\
**Last updated:** [January 21, 2010, 2:57pm UTC](https://www.ruby-forum.com/t/searching-an-array/181971 "2010-01-21T14:57:39Z")

</div>

Hi everyone! :slight\_smile: I’m currently accomplishing what I want, but I’d like to clean it up a bit. I’ve placed the following items in an array (please excuse my lack of proper syntax): @widgets = \[1, red\] \[2,…

---

## [Invitation to connect on LinkedIn](https://www.ruby-forum.com/t/invitation-to-connect-on-linkedin/182013)

<div class="topic-metadata">

**Author:** [@shyammohan\_kanojia](https://www.ruby-forum.com/u/shyammohan_kanojia)\
**Replies:** 0\
**Last updated:** [January 21, 2010, 2:45pm UTC](https://www.ruby-forum.com/t/invitation-to-connect-on-linkedin/182013 "2010-01-21T14:45:56Z")

</div>

LinkedIn shyammohan kanojia requested to add you as a connection on LinkedIn: Mitin, I’d like to add you to my professional network on LinkedIn. shyammohan Accept invitation from shyammohan kanojia View invitatio…

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

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