# Rails

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

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

---

## [Paginate with sqlserver](https://www.ruby-forum.com/t/paginate-with-sqlserver/146078)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 0\
**Last updated:** [August 17, 2008, 2:34pm UTC](https://www.ruby-forum.com/t/paginate-with-sqlserver/146078 "2008-08-17T14:34:28Z")

</div>

I do a sum query, the sql looks like below: select material.code as material\_code,material.name as material\_name, sum(inventories.qty) as qty from inventories inner join materials on inventories.material\_id=materials…

---

## [Rake task with args and environment](https://www.ruby-forum.com/t/rake-task-with-args-and-environment/146061)

<div class="topic-metadata">

**Author:** [@Harold](https://www.ruby-forum.com/u/Harold)\
**Replies:** 4\
**Last updated:** [August 17, 2008, 1:36pm UTC](https://www.ruby-forum.com/t/rake-task-with-args-and-environment/146061 "2008-08-17T13:36:04Z")

</div>

Hi all, I need to create a rake task that both receives the environment and some command line arguments (as per http://rubyforge.org/pipermail/rake-devel/2007-December/000352.html) For example, creating a demo user: …

---

## [Mysql vs sqlite3... which is better for production?](https://www.ruby-forum.com/t/mysql-vs-sqlite3-which-is-better-for-production/146020)

<div class="topic-metadata">

**Author:** [@DCDCDC](https://www.ruby-forum.com/u/DCDCDC)\
**Replies:** 6\
**Last updated:** [August 17, 2008, 1:30pm UTC](https://www.ruby-forum.com/t/mysql-vs-sqlite3-which-is-better-for-production/146020 "2008-08-17T13:30:24Z")

</div>

Hi Everybody! Well I was gonna do a huge commercial project with nearly 2,000 data fields in PHP5 but the recent alliance between Zend Framework and Dojo means the planned integration won’t be available for a few mont…

---

## [\[ADV/REMINDER\] RailsConf Europe approaching fast!](https://www.ruby-forum.com/t/adv-reminder-railsconf-europe-approaching-fast/146074)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 0\
**Last updated:** [August 17, 2008, 1:26pm UTC](https://www.ruby-forum.com/t/adv-reminder-railsconf-europe-approaching-fast/146074 "2008-08-17T13:26:19Z")

</div>

Hi all – RailsConf Europe is happening in Berlin, September 2-4. Registration is still open, at http://www.railsconfeurope.com. We’ve got core team members DHH, Jeremy, and Koz coming, and there’ll be a Q&A panel wit…

---

## [How to do populate task? I'm trying something like](https://www.ruby-forum.com/t/how-to-do-populate-task-im-trying-something-like/146068)

<div class="topic-metadata">

**Author:** [@lz-coelho](https://www.ruby-forum.com/u/lz-coelho)\
**Replies:** 2\
**Last updated:** [August 17, 2008, 10:09am UTC](https://www.ruby-forum.com/t/how-to-do-populate-task-im-trying-something-like/146068 "2008-08-17T10:09:07Z")

</div>

I’m trying to write a taks to populate my rails project with Users. I wrote a simple script to generate and construct a yaml file, like it: #!/usr/bin/ruby require ‘digest/sha1’ letras = \[‘a’, ‘b’, ‘c’, ‘d’, ‘e’, ‘f’…

---

## [Problem with XSLT](https://www.ruby-forum.com/t/problem-with-xslt/146063)

<div class="topic-metadata">

**Author:** [@ricardo](https://www.ruby-forum.com/u/ricardo)\
**Replies:** 0\
**Last updated:** [August 17, 2008, 4:21am UTC](https://www.ruby-forum.com/t/problem-with-xslt/146063 "2008-08-17T04:21:52Z")

</div>

good night I need help to build a program to make a conversion into a ruby xslt someone already used these libraries? I found an example on a site such as the following but could not install the gems know if this is …

---

## [First Model - Please assist](https://www.ruby-forum.com/t/first-model-please-assist/146062)

<div class="topic-metadata">

**Author:** [@trope](https://www.ruby-forum.com/u/trope)\
**Replies:** 1\
**Last updated:** [August 17, 2008, 3:09am UTC](https://www.ruby-forum.com/t/first-model-please-assist/146062 "2008-08-17T03:09:56Z")

</div>

Hi. I am new to RoR. I am beginning my first app. It’s a simple application for roofing contractors. I want to start slow. I can “migrate” as I go, correct?? (smile) So Far I have Three Models: CUSTOMERS , JOBS, ESTI…

---

## [Delete\_all misbehaving in active\_records](https://www.ruby-forum.com/t/delete-all-misbehaving-in-active-records/146057)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 2\
**Last updated:** [August 17, 2008, 1:23am UTC](https://www.ruby-forum.com/t/delete-all-misbehaving-in-active-records/146057 "2008-08-17T01:23:00Z")

</div>

I have two tables: feeds and feed\_items in a one-to-many relationship. I selecting feeds from the feeds table and populating “many” items in the feed\_items table for further processing. This happens in a loop. Befor…

---

## [Rails webhost near Portland, Oregon?](https://www.ruby-forum.com/t/rails-webhost-near-portland-oregon/146001)

<div class="topic-metadata">

**Author:** [@robb](https://www.ruby-forum.com/u/robb)\
**Replies:** 3\
**Last updated:** [August 17, 2008, 1:07am UTC](https://www.ruby-forum.com/t/rails-webhost-near-portland-oregon/146001 "2008-08-17T01:07:09Z")

</div>

Has anyone found one here, or close by? There’s a datacenter in the Pittock building in downtown Portland, and I’d like to find a webhost that uses it or something else nearby.

---

## [RSS Feeds in Ruby on Rails](https://www.ruby-forum.com/t/rss-feeds-in-ruby-on-rails/146053)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 2\
**Last updated:** [August 17, 2008, 12:16am UTC](https://www.ruby-forum.com/t/rss-feeds-in-ruby-on-rails/146053 "2008-08-17T00:16:31Z")

</div>

Just wanted to see what other forum members recommend, we are running into all sorts of problem using FeedTools in an application that I am upgrading for Rails 2.1.0. It does not work. I am looking at alternatives a…

---

## [San Diego RoR?](https://www.ruby-forum.com/t/san-diego-ror/146056)

<div class="topic-metadata">

**Author:** [@emanuele\_tozzato](https://www.ruby-forum.com/u/emanuele_tozzato)\
**Replies:** 0\
**Last updated:** [August 16, 2008, 10:14pm UTC](https://www.ruby-forum.com/t/san-diego-ror/146056 "2008-08-16T22:14:33Z")

</div>

hello, I just moved from Italy to SD. I’m looking for ror geeks to create a solid development crew. you must have at least one year of experience. send your resume, see mine here mekdigital.com E

---

## [Visual\_effect and change focus](https://www.ruby-forum.com/t/visual-effect-and-change-focus/145979)

<div class="topic-metadata">

**Author:** [@LAB](https://www.ruby-forum.com/u/LAB)\
**Replies:** 2\
**Last updated:** [August 16, 2008, 9:26pm UTC](https://www.ruby-forum.com/t/visual-effect-and-change-focus/145979 "2008-08-16T21:26:33Z")

</div>

Hello - I am using a visual\_effect like this: \<%= link\_to "Question #1", "#", :onclick =\> visual\_effect(:toggle\_blind, 'question1') %\> Question #1: Answer So that when the link to Question #1 is clicked on, it dro…

---

## [Ec2 and unfuddle and git](https://www.ruby-forum.com/t/ec2-and-unfuddle-and-git/146052)

<div class="topic-metadata">

**Author:** [@phil](https://www.ruby-forum.com/u/phil)\
**Replies:** 0\
**Last updated:** [August 16, 2008, 9:14pm UTC](https://www.ruby-forum.com/t/ec2-and-unfuddle-and-git/146052 "2008-08-16T21:14:16Z")

</div>

I am not having much luck asking around, but, has anyone successfully deployed an ec2onrails app from Unfuddle? I am having some issue that may be Capistrano related… but it is a combination of Unfuddle, ec2 and Capis…

---

## [How call alert method from controller (something like rende :ajax =\> 'some text')?](https://www.ruby-forum.com/t/how-call-alert-method-from-controller-something-like-rende-ajax-some-text/145922)

<div class="topic-metadata">

**Author:** [@lz-coelho](https://www.ruby-forum.com/u/lz-coelho)\
**Replies:** 5\
**Last updated:** [August 16, 2008, 8:57pm UTC](https://www.ruby-forum.com/t/how-call-alert-method-from-controller-something-like-rende-ajax-some-text/145922 "2008-08-16T20:57:52Z")

</div>

Yeah, I’m needing to show a popup window after the execution of method. I’m trying something like: def bla respond\_to do |format| format.html { redirect\_to … } format.js end end bla.rjs page.alert(‘some text’) …

---

## [Migrate seems to work but doesn't](https://www.ruby-forum.com/t/migrate-seems-to-work-but-doesnt/145968)

<div class="topic-metadata">

**Author:** [@khamaj](https://www.ruby-forum.com/u/khamaj)\
**Replies:** 7\
**Last updated:** [August 16, 2008, 6:48pm UTC](https://www.ruby-forum.com/t/migrate-seems-to-work-but-doesnt/145968 "2008-08-16T18:48:29Z")

</div>

I’d be very grateful for some help. I am a newbie working through Agile Web D. with Rails 2nd edition. As far as I know I have all the compatible versions of things installed including RadRails 0.7.2. I have got up to…

---

## [Textmate tips and shortcuts](https://www.ruby-forum.com/t/textmate-tips-and-shortcuts/146028)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 4\
**Last updated:** [August 16, 2008, 6:20pm UTC](https://www.ruby-forum.com/t/textmate-tips-and-shortcuts/146028 "2008-08-16T18:20:21Z")

</div>

Wow, 111111 messages in rails-talk. (111112 now) I’ve recently purchased my first mac, and of course textmate. I think I’m about to switch to textmate full time from Netbeans. I’m finding I’m behind the 8 ball with …

---

## [Problems after updating to rails 2.1](https://www.ruby-forum.com/t/problems-after-updating-to-rails-2-1/146037)

<div class="topic-metadata">

**Author:** [@steveluscher](https://www.ruby-forum.com/u/steveluscher)\
**Replies:** 5\
**Last updated:** [August 16, 2008, 4:45pm UTC](https://www.ruby-forum.com/t/problems-after-updating-to-rails-2-1/146037 "2008-08-16T16:45:43Z")

</div>

Hi everybody, I just updated to rails 2.1 as root user, and noticed that non root users have different rails versions than root. I thought updating as root would make 2.1 available for all users. I was hoping this b…

---

## [Dates stored as UNIX timestamps](https://www.ruby-forum.com/t/dates-stored-as-unix-timestamps/145972)

<div class="topic-metadata">

**Author:** [@Christian\_RishSSSSj](https://www.ruby-forum.com/u/Christian_RishSSSSj)\
**Replies:** 4\
**Last updated:** [August 16, 2008, 4:15pm UTC](https://www.ruby-forum.com/t/dates-stored-as-unix-timestamps/145972 "2008-08-16T16:15:02Z")

</div>

Dear list I am working with a legacy MySQL database which has dates stored as UNIX timestamps. Ideally, I would like to have the dates converted to proper Ruby objects when fetched from the database, and converted to …

---

## [Style sheets with SSL](https://www.ruby-forum.com/t/style-sheets-with-ssl/146039)

<div class="topic-metadata">

**Author:** [@Jorg\_L](https://www.ruby-forum.com/u/Jorg_L)\
**Replies:** 0\
**Last updated:** [August 16, 2008, 4:05pm UTC](https://www.ruby-forum.com/t/style-sheets-with-ssl/146039 "2008-08-16T16:05:04Z")

</div>

I have everything working with apache/mongrel/ssl. Everything except the stylesheet won’t load. The error message given is No protocol handler was valid for the URL /stylesheets/scaffold.css. Any ideas?

---

## [Anyone using acts\_as\_state\_machine with restful\_auth?](https://www.ruby-forum.com/t/anyone-using-acts-as-state-machine-with-restful-auth/146033)

<div class="topic-metadata">

**Author:** [@chunkyslink](https://www.ruby-forum.com/u/chunkyslink)\
**Replies:** 0\
**Last updated:** [August 16, 2008, 2:34pm UTC](https://www.ruby-forum.com/t/anyone-using-acts-as-state-machine-with-restful-auth/146033 "2008-08-16T14:34:17Z")

</div>

I’m currently re-working the authentication in an application. I didn’t start out with restful\_authentication this time (I’ve used it before), and it looks like some of the tried & tested features could come in handy.…

---

## [Is ActiveRecord appropriate for this use case?](https://www.ruby-forum.com/t/is-activerecord-appropriate-for-this-use-case/146021)

<div class="topic-metadata">

**Author:** [@snowbird122](https://www.ruby-forum.com/u/snowbird122)\
**Replies:** 1\
**Last updated:** [August 16, 2008, 2:19pm UTC](https://www.ruby-forum.com/t/is-activerecord-appropriate-for-this-use-case/146021 "2008-08-16T14:19:39Z")

</div>

Hello- I’m creating an app that handles logging and reporting on system metrics. It’s in the same vein as ScoutApp, but is just for my own educational benefit. The core of the app handles logging data that will be re…

---

## [Add css to text\_field\_tag](https://www.ruby-forum.com/t/add-css-to-text-field-tag/146025)

<div class="topic-metadata">

**Author:** [@heldopslippers](https://www.ruby-forum.com/u/heldopslippers)\
**Replies:** 1\
**Last updated:** [August 16, 2008, 1:51pm UTC](https://www.ruby-forum.com/t/add-css-to-text-field-tag/146025 "2008-08-16T13:51:33Z")

</div>

hi all, I have the following problem. I have a text\_field\_tag and want to add some css style to it. so i need something like a :class =\> ‘field\_style’ or something i have been searching for quite some time now but ca…

---

## [Params\[:data\]](https://www.ruby-forum.com/t/params-data/145988)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 4\
**Last updated:** [August 16, 2008, 12:07pm UTC](https://www.ruby-forum.com/t/params-data/145988 "2008-08-16T12:07:16Z")

</div>

How can I get only GET or POST parameters? If there is GET and POST then params\[:data\] returns GET, but I need that POST overwrite GET. What I cat do?

---

## [Ruby Catalog how to list sideways](https://www.ruby-forum.com/t/ruby-catalog-how-to-list-sideways/145552)

<div class="topic-metadata">

**Author:** [@tyliong](https://www.ruby-forum.com/u/tyliong)\
**Replies:** 7\
**Last updated:** [August 16, 2008, 10:24am UTC](https://www.ruby-forum.com/t/ruby-catalog-how-to-list-sideways/145552 "2008-08-16T10:24:56Z")

</div>

Hi when i use \<% for groceries in @groceries %\> in the html file what i get when i list objects is this: #(object 1) #(object 2) #(object 3) #(object 4) what i want is this # # # (end of page) # # # (end of page) …

---

## [Rendering a partial twice, with different objects](https://www.ruby-forum.com/t/rendering-a-partial-twice-with-different-objects/146016)

<div class="topic-metadata">

**Author:** [@shenry](https://www.ruby-forum.com/u/shenry)\
**Replies:** 4\
**Last updated:** [August 16, 2008, 7:44am UTC](https://www.ruby-forum.com/t/rendering-a-partial-twice-with-different-objects/146016 "2008-08-16T07:44:07Z")

</div>

I have a form in which I want to render a list of full beers and empty beers. I have a partial that displays the details of the empty or full beers. I would like to use the same partial twice in one form to display de…

---

## [Best way to host edge and stable repo at GitHub?](https://www.ruby-forum.com/t/best-way-to-host-edge-and-stable-repo-at-github/145869)

<div class="topic-metadata">

**Author:** [@tgreiser](https://www.ruby-forum.com/u/tgreiser)\
**Replies:** 1\
**Last updated:** [August 16, 2008, 6:14am UTC](https://www.ruby-forum.com/t/best-way-to-host-edge-and-stable-repo-at-github/145869 "2008-08-16T06:14:40Z")

</div>

What would be the best way to have edge and stable versions of a project at GitHub? Tags? Branches? The best I can figure is for the master branch to always be stable (thanks schacon!) and have a development branch …

---

## [Before filters with parameters AND conditions](https://www.ruby-forum.com/t/before-filters-with-parameters-and-conditions/146007)

<div class="topic-metadata">

**Author:** [@totti83](https://www.ruby-forum.com/u/totti83)\
**Replies:** 4\
**Last updated:** [August 16, 2008, 3:36am UTC](https://www.ruby-forum.com/t/before-filters-with-parameters-and-conditions/146007 "2008-08-16T03:36:47Z")

</div>

Hi, I want to use a method with parameters in the before\_filter callback, but also use some conditions like :only =\> :edit. For example: before\_filter { |c| c.auth ‘admin’, :only =\> :edit } Off course this is not wor…

---

## [Before\_filter multiple cache hits with index action](https://www.ruby-forum.com/t/before-filter-multiple-cache-hits-with-index-action/146011)

<div class="topic-metadata">

**Author:** [@nateleavitt](https://www.ruby-forum.com/u/nateleavitt)\
**Replies:** 1\
**Last updated:** [August 16, 2008, 3:30am UTC](https://www.ruby-forum.com/t/before-filter-multiple-cache-hits-with-index-action/146011 "2008-08-16T03:30:20Z")

</div>

I have an association between users and subscriptions. I’m using REST so in my subscriptions controller I’m using a before\_filter which loads the current user from cache. However, I notice when running the index acti…

---

## [Onmouseover to anchor](https://www.ruby-forum.com/t/onmouseover-to-anchor/146012)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 0\
**Last updated:** [August 16, 2008, 2:26am UTC](https://www.ruby-forum.com/t/onmouseover-to-anchor/146012 "2008-08-16T02:26:54Z")

</div>

…“GO”… That’s what I have right now, but I’d like to have the browser go to the anchor with an onmouseover. Thanks

---

## [2.x and RESTful Controllers](https://www.ruby-forum.com/t/2-x-and-restful-controllers/145980)

<div class="topic-metadata">

**Author:** [@tmountain](https://www.ruby-forum.com/u/tmountain)\
**Replies:** 5\
**Last updated:** [August 16, 2008, 1:56am UTC](https://www.ruby-forum.com/t/2-x-and-restful-controllers/145980 "2008-08-16T01:56:44Z")

</div>

Hello everybody. I’m in the process of developing a site on Rails 2.0.2, and having migrated from the early 1.x days, I’m still getting my feet wet with the new REST-based controllers. For the most part, the REST cont…

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

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