# Rails

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

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

---

## [Screen scraping message boards](https://www.ruby-forum.com/t/screen-scraping-message-boards/136563)

<div class="topic-metadata">

**Author:** [@jbaty](https://www.ruby-forum.com/u/jbaty)\
**Replies:** 2\
**Last updated:** [May 4, 2008, 6:06am UTC](https://www.ruby-forum.com/t/screen-scraping-message-boards/136563 "2008-05-04T06:06:50Z")

</div>

Hi all, I’m trying to scrap (screen scraping) some message board (e.g. yahoo finance, or any forum, etc.) I’m trying to use ruby to do so, but still don’t know how to go over messages in the same html page and extra…

---

## [Gettext on OS X Leopard](https://www.ruby-forum.com/t/gettext-on-os-x-leopard/136583)

<div class="topic-metadata">

**Author:** [@Nikos\_Kanellopoulos](https://www.ruby-forum.com/u/Nikos_Kanellopoulos)\
**Replies:** 0\
**Last updated:** [May 3, 2008, 11:21pm UTC](https://www.ruby-forum.com/t/gettext-on-os-x-leopard/136583 "2008-05-03T23:21:47Z")

</div>

Hello there. I tried to run my Rails app on Leopard. I usually run it on Linux, but I wanted to test it on my Mac (MBP 2.5GHz, Leopard 10.5.2, Ruby 1.8.6, Rails 1.2.6). I installed ruby-gettext, and I also installed …

---

## [Perform custom calculation on model and sort by the calculation](https://www.ruby-forum.com/t/perform-custom-calculation-on-model-and-sort-by-the-calculation/136574)

<div class="topic-metadata">

**Author:** [@robert](https://www.ruby-forum.com/u/robert)\
**Replies:** 3\
**Last updated:** [May 3, 2008, 10:25pm UTC](https://www.ruby-forum.com/t/perform-custom-calculation-on-model-and-sort-by-the-calculation/136574 "2008-05-03T22:25:29Z")

</div>

Hi, If anyone can point me in the right direction, I’d very appreciative. I need to peform a calculation on a model (a number of columns) and use a few columns of the model of the person who is logged in. Once that c…

---

## [Assessing Customer Satisfaction and Agile Project Management - PhD Dissertation](https://www.ruby-forum.com/t/assessing-customer-satisfaction-and-agile-project-management-phd-dissertation/196666)

<div class="topic-metadata">

**Author:** [@Donald\_Buresh](https://www.ruby-forum.com/u/Donald_Buresh)\
**Replies:** 0\
**Last updated:** [May 3, 2008, 9:47pm UTC](https://www.ruby-forum.com/t/assessing-customer-satisfaction-and-agile-project-management-phd-dissertation/196666 "2008-05-03T21:47:52Z")

</div>

This is a reminder. Please distribute this email. Data on both agile and plan-driven projects are welcome. To Whom It May Concern, My name is Donald Buresh, and I am a Ph.D. student at Northcentral University located…

---

## [ActionMailer Multiple recipients](https://www.ruby-forum.com/t/actionmailer-multiple-recipients/136555)

<div class="topic-metadata">

**Author:** [@Meenal](https://www.ruby-forum.com/u/Meenal)\
**Replies:** 2\
**Last updated:** [May 3, 2008, 9:26pm UTC](https://www.ruby-forum.com/t/actionmailer-multiple-recipients/136555 "2008-05-03T21:26:40Z")

</div>

I am using ActionMailer to send mails. I want to send mails to multiple recipients which I get from a view. Here is the controller code. def groupcorres user = User.find(session\[:user\_id\]) address = Array.new line…

---

## [Is it possible to let users define/customize their own stylesheets?](https://www.ruby-forum.com/t/is-it-possible-to-let-users-define-customize-their-own-stylesheets/136570)

<div class="topic-metadata">

**Author:** [@vince](https://www.ruby-forum.com/u/vince)\
**Replies:** 1\
**Last updated:** [May 3, 2008, 8:51pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-let-users-define-customize-their-own-stylesheets/136570 "2008-05-03T20:51:27Z")

</div>

I have a blog feature on part of my site which essentially is just a Posts and Comments controller. I was wondering if it’s possible to let users define or customize their own stylesheets for their blogs similar to h…

---

## [Pls help noob with to\_xml](https://www.ruby-forum.com/t/pls-help-noob-with-to-xml/136565)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 4\
**Last updated:** [May 3, 2008, 7:46pm UTC](https://www.ruby-forum.com/t/pls-help-noob-with-to-xml/136565 "2008-05-03T19:46:45Z")

</div>

my beginner’s luck has vaporized on this one. new to rails; new to ruby; but been around the block several times. my model: (Category.rb) class Category \< ActiveRecord::Base self.to\_xml(:only =\> \[:id, :name\], :inclu…

---

## [Why do my links not work?](https://www.ruby-forum.com/t/why-do-my-links-not-work/136566)

<div class="topic-metadata">

**Author:** [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Replies:** 1\
**Last updated:** [May 3, 2008, 7:17pm UTC](https://www.ruby-forum.com/t/why-do-my-links-not-work/136566 "2008-05-03T19:17:11Z")

</div>

I have this file located in /app/views/layouts \<%= @title %\> \<% link\_to("Home", { :action =\> "index" }) %\> | \<% link\_to("About Us", { :action =\> "about" }) %\> | \<% link\_to("Help", { :action =\> "help" })…

---

## [Generator for lazy people (mydry)](https://www.ruby-forum.com/t/generator-for-lazy-people-mydry/136520)

<div class="topic-metadata">

**Author:** [@urubatan](https://www.ruby-forum.com/u/urubatan)\
**Replies:** 3\
**Last updated:** [May 3, 2008, 5:33pm UTC](https://www.ruby-forum.com/t/generator-for-lazy-people-mydry/136520 "2008-05-03T17:33:53Z")

</div>

I have just release a rails plugin with a generator that takes the information you already wrote on the migration and creates a model with that information already included. for example: not null fields belongs\_to a…

---

## [Buffered image to file in rails](https://www.ruby-forum.com/t/buffered-image-to-file-in-rails/136550)

<div class="topic-metadata">

**Author:** [@ratnavel](https://www.ruby-forum.com/u/ratnavel)\
**Replies:** 1\
**Last updated:** [May 3, 2008, 3:06pm UTC](https://www.ruby-forum.com/t/buffered-image-to-file-in-rails/136550 "2008-05-03T15:06:35Z")

</div>

Hi, I was trying to integrate a scanner with my application. After a long struggle i succeeded in integrating, Now i could see the captured image in my browser, But now i need to upload that image in buffer to the fi…

---

## [Split datetime into 3](https://www.ruby-forum.com/t/split-datetime-into-3/196665)

<div class="topic-metadata">

**Author:** [@Biles\_Online](https://www.ruby-forum.com/u/Biles_Online)\
**Replies:** 1\
**Last updated:** [May 3, 2008, 2:40pm UTC](https://www.ruby-forum.com/t/split-datetime-into-3/196665 "2008-05-03T14:40:22Z")

</div>

Hi, I am trying to sort a a chart of my database entries. I would like to sort by weekday, date, & time. I want to be able to do each separately. I would like to be able to process this through the find ‘sql’ the ord…

---

## [Troubles for installing rails-1.2.6 on ubuntu 8.04](https://www.ruby-forum.com/t/troubles-for-installing-rails-1-2-6-on-ubuntu-8-04/136531)

<div class="topic-metadata">

**Author:** [@rustam](https://www.ruby-forum.com/u/rustam)\
**Replies:** 2\
**Last updated:** [May 3, 2008, 8:10am UTC](https://www.ruby-forum.com/t/troubles-for-installing-rails-1-2-6-on-ubuntu-8-04/136531 "2008-05-03T08:10:02Z")

</div>

on ubuntu 8.04, rails-2.0.2 as default ,now i want to instal rails-1.2.6 first i have download these gem packages and install all of then successfully include rails-1.2.6 activesupport-1.4.4.gem, activerecord-1.15.6.…

---

## [Finding highest ratings with acts\_as\_rateable](https://www.ruby-forum.com/t/finding-highest-ratings-with-acts-as-rateable/71720)

<div class="topic-metadata">

**Author:** [@mr\_robot](https://www.ruby-forum.com/u/mr_robot)\
**Replies:** 5\
**Last updated:** [May 3, 2008, 7:13am UTC](https://www.ruby-forum.com/t/finding-highest-ratings-with-acts-as-rateable/71720 "2008-05-03T07:13:21Z")

</div>

hi so i can find and set a Posts rating with the acts\_as\_rateable plugin. but how would i go about searching for the highest rated Posts, ie. search by rating. tx

---

## [Select distinct not working](https://www.ruby-forum.com/t/select-distinct-not-working/136490)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 8\
**Last updated:** [May 3, 2008, 7:12am UTC](https://www.ruby-forum.com/t/select-distinct-not-working/136490 "2008-05-03T07:12:11Z")

</div>

HI all, @users = Node.find(:all, :select =\> “DISTINCT users.id”, :conditions =\> \[" lft \>= ? AND rgt \<= ? AND nodes.statistics = 1", @event.node.lft, @event.node.rgt\], :include =\> { :users =\> :registrations }, :orde…

---

## [Script/console is spanked in 2.0.2](https://www.ruby-forum.com/t/script-console-is-spanked-in-2-0-2/136534)

<div class="topic-metadata">

**Author:** [@rubyfreak](https://www.ruby-forum.com/u/rubyfreak)\
**Replies:** 0\
**Last updated:** [May 3, 2008, 7:09am UTC](https://www.ruby-forum.com/t/script-console-is-spanked-in-2-0-2/136534 "2008-05-03T07:09:51Z")

</div>

When I run script/console in a 2.0.2 project, the cursor point gets off by one character after I do a backspace. Lets say I type irb ActionControllet If I hit backspace, instead of deleting the "t’ at the end. it…

---

## [Are there any built-in utilities for SSL-protocol?](https://www.ruby-forum.com/t/are-there-any-built-in-utilities-for-ssl-protocol/136458)

<div class="topic-metadata">

**Author:** [@nop](https://www.ruby-forum.com/u/nop)\
**Replies:** 1\
**Last updated:** [May 3, 2008, 7:04am UTC](https://www.ruby-forum.com/t/are-there-any-built-in-utilities-for-ssl-protocol/136458 "2008-05-03T07:04:33Z")

</div>

Are there any built-in utilities for SSL-protocol?

---

## [Does anyone know where I could find a good explanation of how rails works internally?](https://www.ruby-forum.com/t/does-anyone-know-where-i-could-find-a-good-explanation-of-how-rails-works-internally/136528)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [May 3, 2008, 6:40am UTC](https://www.ruby-forum.com/t/does-anyone-know-where-i-could-find-a-good-explanation-of-how-rails-works-internally/136528 "2008-05-03T06:40:01Z")

</div>

I was wondering if anyone knew of some resources I could look at to learn about how rails works internally. I’ve been looking through the code but I was wondering if there were any high level explanations of how it w…

---

## [Script.aculo.us sortable floats in Rails](https://www.ruby-forum.com/t/script-aculo-us-sortable-floats-in-rails/136533)

<div class="topic-metadata">

**Author:** [@ncancelliere](https://www.ruby-forum.com/u/ncancelliere)\
**Replies:** 0\
**Last updated:** [May 3, 2008, 6:26am UTC](https://www.ruby-forum.com/t/script-aculo-us-sortable-floats-in-rails/136533 "2008-05-03T06:26:00Z")

</div>

http://wiki.script.aculo.us/scriptaculous/page/print/SortableFloatsDemo I understand how the sortable lists work in Rails (using the LI elements). I cannot seem to apply this though to floats - does the acts\_as\_sorta…

---

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

<div class="topic-metadata">

**Author:** [@suneeta](https://www.ruby-forum.com/u/suneeta)\
**Replies:** 4\
**Last updated:** [May 3, 2008, 5:56am UTC](https://www.ruby-forum.com/t/link-to/130430 "2008-05-03T05:56:28Z")

</div>

I have an edit\_func\_spec\_ui.rhtml file in the controller popup\_controller: Edit Functional Specification \<%= text\_area "ci\_content", "functional\_spec", "cols" =\> 120, "rows" =\> 5 %\> \<%= link\_to (…

---

## [Issue where rails edit restful path is not rendering a template properly. Any Ideas?](https://www.ruby-forum.com/t/issue-where-rails-edit-restful-path-is-not-rendering-a-template-properly-any-ideas/136530)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 3, 2008, 3:45am UTC](https://www.ruby-forum.com/t/issue-where-rails-edit-restful-path-is-not-rendering-a-template-properly-any-ideas/136530 "2008-05-03T03:45:52Z")

</div>

Hello, In my routes file I have map.resources :patients which allows me to use edit\_patient\_path(patient) in my view. Unfourtunately when I try to go to the path generated by edit\_patient\_path(patient) it says the t…

---

## [Constantly Running a Script](https://www.ruby-forum.com/t/constantly-running-a-script/136422)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 5\
**Last updated:** [May 3, 2008, 2:07am UTC](https://www.ruby-forum.com/t/constantly-running-a-script/136422 "2008-05-03T02:07:26Z")

</div>

Hello, I have a synchronization program built on InstantRails v1.6. I need to have an option that makes my program run daily at a certain time. Thus, I need a script or something that is constantly running and checkin…

---

## [Split datetime into 3](https://www.ruby-forum.com/t/split-datetime-into-3/136522)

<div class="topic-metadata">

**Author:** [@Biles\_Online](https://www.ruby-forum.com/u/Biles_Online)\
**Replies:** 8\
**Last updated:** [May 3, 2008, 1:34am UTC](https://www.ruby-forum.com/t/split-datetime-into-3/136522 "2008-05-03T01:34:49Z")

</div>

Hi, I am trying to sort a a chart of my database entries. I would like to sort by weekday, date, & time. I want to be able to do each separately. I would like to be able to process this through the find ‘sql’ the ord…

---

## [ActionWebService support for document/literal encoding?](https://www.ruby-forum.com/t/actionwebservice-support-for-document-literal-encoding/136525)

<div class="topic-metadata">

**Author:** [@newbee-robert](https://www.ruby-forum.com/u/newbee-robert)\
**Replies:** 0\
**Last updated:** [May 3, 2008, 1:06am UTC](https://www.ruby-forum.com/t/actionwebservice-support-for-document-literal-encoding/136525 "2008-05-03T01:06:20Z")

</div>

are there plans for document/literal encoding type support in ActionWebService? it is my understanding that SOAP encoding is the default and only option currently. thanks. robert.

---

## [Database.yml + CC.rb + Capistrano](https://www.ruby-forum.com/t/database-yml-cc-rb-capistrano/136521)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 3, 2008, 12:59am UTC](https://www.ruby-forum.com/t/database-yml-cc-rb-capistrano/136521 "2008-05-03T00:59:43Z")

</div>

So, I deploy my app with capistrano. I’m trying to set up cc.rb to do it’s thing. I use a capistrano task to generate my database.yml file (with erb) on cap deploy:setup (as per the rails way). This leads to a /share…

---

## [Sortable\_element - dotted line property around drop target?](https://www.ruby-forum.com/t/sortable-element-dotted-line-property-around-drop-target/136523)

<div class="topic-metadata">

**Author:** [@rornoob](https://www.ruby-forum.com/u/rornoob)\
**Replies:** 0\
**Last updated:** [May 3, 2008, 12:56am UTC](https://www.ruby-forum.com/t/sortable-element-dotted-line-property-around-drop-target/136523 "2008-05-03T00:56:12Z")

</div>

Hey - does anyone know how to put a dotted lined around the target drop point using the sortable\_element? For example - those that use iGoogle - if you move your modules around you will see the target drop points note…

---

## [Putting a controller into a gem?](https://www.ruby-forum.com/t/putting-a-controller-into-a-gem/136518)

<div class="topic-metadata">

**Author:** [@plambert](https://www.ruby-forum.com/u/plambert)\
**Replies:** 1\
**Last updated:** [May 3, 2008, 12:33am UTC](https://www.ruby-forum.com/t/putting-a-controller-into-a-gem/136518 "2008-05-03T00:33:21Z")

</div>

If I put a controller class into a gem, and then require that gem in my application, will the controller then be available to handle requests? I’m designing a controller that I think could be useful for more than one…

---

## [Using ActiveRecord in a script?](https://www.ruby-forum.com/t/using-activerecord-in-a-script/136438)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 4\
**Last updated:** [May 3, 2008, 12:27am UTC](https://www.ruby-forum.com/t/using-activerecord-in-a-script/136438 "2008-05-03T00:27:30Z")

</div>

Hello, …at least I’m pretty sure its called ActiveRecord. I have an app running on InstantRails 1.6 that will periodically call a ruby script in the /script folder. In the script, I use the same models to connect to …

---

## [Link\_to meta programming question](https://www.ruby-forum.com/t/link-to-meta-programming-question/136412)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 20\
**Last updated:** [May 3, 2008, 12:05am UTC](https://www.ruby-forum.com/t/link-to-meta-programming-question/136412 "2008-05-03T00:05:07Z")

</div>

I am trying to create a dynamic menu using the following construct: \<%- menu\_list = \[ ‘first’, ‘second’, ‘third’\] -%\> \<%- menu\_list.each do |m| -%\> \<%= link\_to "List All #{m.titlecase.pluralize} \_path %\> \<%- e…

---

## [Names of select elements inside a fields\_for block not generated as expected](https://www.ruby-forum.com/t/names-of-select-elements-inside-a-fields-for-block-not-generated-as-expected/136514)

<div class="topic-metadata">

**Author:** [@rpardee](https://www.ruby-forum.com/u/rpardee)\
**Replies:** 1\
**Last updated:** [May 2, 2008, 11:42pm UTC](https://www.ruby-forum.com/t/names-of-select-elements-inside-a-fields-for-block-not-generated-as-expected/136514 "2008-05-02T23:42:59Z")

</div>

Hey All, I’m trying to play along w/the ‘complex forms 1’ railscast (#73 Complex Forms Part 1 - RailsCasts) and having trouble. The view is projects/new. I’m trying to add some project\_people to the form w/code lik…

---

## [Getting a dynamic selected field from an activescaffold...?](https://www.ruby-forum.com/t/getting-a-dynamic-selected-field-from-an-activescaffold/136513)

<div class="topic-metadata">

**Author:** [@emuen](https://www.ruby-forum.com/u/emuen)\
**Replies:** 0\
**Last updated:** [May 2, 2008, 10:31pm UTC](https://www.ruby-forum.com/t/getting-a-dynamic-selected-field-from-an-activescaffold/136513 "2008-05-02T22:31:34Z")

</div>

Hi there. I need to get a specific field from a activescaffold object. The specific field must be editable, and must de available to be set to a new value, thus the object.send(:field) will not work, since it only ge…

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

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