# Rails

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

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

---

## [Cycle/Partials issue](https://www.ruby-forum.com/t/cycle-partials-issue/176456)

<div class="topic-metadata">

**Author:** [@shaunp](https://www.ruby-forum.com/u/shaunp)\
**Replies:** 8\
**Last updated:** [October 1, 2009, 9:51am UTC](https://www.ruby-forum.com/t/cycle-partials-issue/176456 "2009-10-01T09:51:54Z")

</div>

First off, I’m fairly new to ruby on rails so this may appear simple but I’m just learning the ropes :slight\_smile: So I have a simple blog app where a post has many comments. The ‘show’ view for posts renders a parti…

---

## [ScITE Question](https://www.ruby-forum.com/t/scite-question/173867)

<div class="topic-metadata">

**Author:** [@Young\_Ben](https://www.ruby-forum.com/u/Young_Ben)\
**Replies:** 3\
**Last updated:** [October 1, 2009, 9:41am UTC](https://www.ruby-forum.com/t/scite-question/173867 "2009-10-01T09:41:57Z")

</div>

I’m a newbie & am just learning to use Ruby. I’ve chosen ScITE as my editor. So far so good, writing scripts then executing them inside ScITE using ‘F5’. when I run this in ScITE puts “Hello, world. What is your name…

---

## [Problem with git remote repository](https://www.ruby-forum.com/t/problem-with-git-remote-repository/176490)

<div class="topic-metadata">

**Author:** [@ratnik](https://www.ruby-forum.com/u/ratnik)\
**Replies:** 0\
**Last updated:** [October 1, 2009, 9:40am UTC](https://www.ruby-forum.com/t/problem-with-git-remote-repository/176490 "2009-10-01T09:40:11Z")

</div>

Hello I have a problem accessing remote git repository located on Linux machine in my local network. I performed the following steps: firstly setup the remote repository on my Linux machine: $ mkdir /root/projects/…

---

## [Collection\_select default selected value](https://www.ruby-forum.com/t/collection-select-default-selected-value/61286)

<div class="topic-metadata">

**Author:** [@martin-ga](https://www.ruby-forum.com/u/martin-ga)\
**Replies:** 15\
**Last updated:** [October 1, 2009, 9:29am UTC](https://www.ruby-forum.com/t/collection-select-default-selected-value/61286 "2009-10-01T09:29:16Z")

</div>

Hiall, Unfortunately I just can’t find out how to setup a default selected value when using collection\_select. My call is like so: \<%= collection\_select(:consultant, :lastname, @consultants, :id, :lastname, { :select…

---

## [Rails CMS - which is most stable & simplest at the moment? (i.e. has a solid following)](https://www.ruby-forum.com/t/rails-cms-which-is-most-stable-simplest-at-the-moment-i-e-has-a-solid-following/175812)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 5\
**Last updated:** [October 1, 2009, 5:48am UTC](https://www.ruby-forum.com/t/rails-cms-which-is-most-stable-simplest-at-the-moment-i-e-has-a-solid-following/175812 "2009-10-01T05:48:05Z")

</div>

Hi - there quite a few Ruby on Rails CMS’s out there. Can anyone give a picture of which are the most supported/worked on at the moment (i.e. most likely to have a long life)? Just after a simple CMS… thanks

---

## [Can't connect with MySQL database](https://www.ruby-forum.com/t/cant-connect-with-mysql-database/176435)

<div class="topic-metadata">

**Author:** [@dangermoose](https://www.ruby-forum.com/u/dangermoose)\
**Replies:** 1\
**Last updated:** [October 1, 2009, 3:27am UTC](https://www.ruby-forum.com/t/cant-connect-with-mysql-database/176435 "2009-10-01T03:27:19Z")

</div>

I just installed MySQL and its drivers on a Mac OS X Leopard. When I issued my rails command to build a new app, then issued the script/ server command and connected to my localhost:3000 in the browser, I saw the foll…

---

## [2 RESTful controllers for the same resource](https://www.ruby-forum.com/t/2-restful-controllers-for-the-same-resource/176419)

<div class="topic-metadata">

**Author:** [@PanosJee](https://www.ruby-forum.com/u/PanosJee)\
**Replies:** 1\
**Last updated:** [October 1, 2009, 3:24am UTC](https://www.ruby-forum.com/t/2-restful-controllers-for-the-same-resource/176419 "2009-10-01T03:24:22Z")

</div>

Hi everyone I want to have two restful controllers for the same resource (Users) One controller (UsersController) is straight in the controllers folder and is used for singup and so on Then i need another controller …

---

## [Sessions (cookie)](https://www.ruby-forum.com/t/sessions-cookie/176462)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 2\
**Last updated:** [October 1, 2009, 2:44am UTC](https://www.ruby-forum.com/t/sessions-cookie/176462 "2009-10-01T02:44:00Z")

</div>

I am dealing with a legacy db and I really don’t want to add a sessions table unless I have to. I am just using default setup in Rails 2.3.2 and I don’t see any declarations regarding sessions in config/environment\[.r…

---

## [Can't Fully Install Passenger Apache2 Module](https://www.ruby-forum.com/t/cant-fully-install-passenger-apache2-module/176467)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [October 1, 2009, 2:09am UTC](https://www.ruby-forum.com/t/cant-fully-install-passenger-apache2-module/176467 "2009-10-01T02:09:28Z")

</div>

Hello, I’ve installed Apache 2 server, and now I’m trying to install Passenger Apache 2 module via Cygwin on Windows. However, when I run the command: passenger-install-apache2-module in cygwin I get the below error …

---

## [What is the Ruby on Rails equivalent to php includes?](https://www.ruby-forum.com/t/what-is-the-ruby-on-rails-equivalent-to-php-includes/176445)

<div class="topic-metadata">

**Author:** [@Eric\_JSGruber](https://www.ruby-forum.com/u/Eric_JSGruber)\
**Replies:** 18\
**Last updated:** [October 1, 2009, 2:08am UTC](https://www.ruby-forum.com/t/what-is-the-ruby-on-rails-equivalent-to-php-includes/176445 "2009-10-01T02:08:00Z")

</div>

If I was to include a file (such as in a template) in php to use across a large number of pages, I would write this: \<?php include ('navigation.html'); ?\> In turn, every time I used this code, it would “include” (or be…

---

## [Access to session variable in model](https://www.ruby-forum.com/t/access-to-session-variable-in-model/176390)

<div class="topic-metadata">

**Author:** [@adammontgomery](https://www.ruby-forum.com/u/adammontgomery)\
**Replies:** 4\
**Last updated:** [September 30, 2009, 11:54pm UTC](https://www.ruby-forum.com/t/access-to-session-variable-in-model/176390 "2009-09-30T23:54:20Z")

</div>

Hi everyone I am using attachment fu for image uploading. I try to customize the path for pictures be saved. If I call session\[:kwikerhash\] in the image.rb where there method for path definition is I get an undefined…

---

## [Integration test api call with xml body](https://www.ruby-forum.com/t/integration-test-api-call-with-xml-body/176343)

<div class="topic-metadata">

**Author:** [@phibo](https://www.ruby-forum.com/u/phibo)\
**Replies:** 1\
**Last updated:** [September 30, 2009, 11:43pm UTC](https://www.ruby-forum.com/t/integration-test-api-call-with-xml-body/176343 "2009-09-30T23:43:41Z")

</div>

I have implemented an API to be used like curl -X POST -H ‘Content-type: application/xml’ -d ‘john\</ login\>123456’ http://0.0.0.0:3000/users/register and the above call works like charm. However, I can’t figure out h…

---

## [App isn't querying db on server, but works in development](https://www.ruby-forum.com/t/app-isnt-querying-db-on-server-but-works-in-development/175369)

<div class="topic-metadata">

**Author:** [@Eric\_JSGruber](https://www.ruby-forum.com/u/Eric_JSGruber)\
**Replies:** 12\
**Last updated:** [September 30, 2009, 8:42pm UTC](https://www.ruby-forum.com/t/app-isnt-querying-db-on-server-but-works-in-development/175369 "2009-09-30T20:42:47Z")

</div>

I’ve got a very small app that uses ajax for a live preview. On my development machine (using sqlite3), it works just fine. Here is a sample of the log with a known good query: development.log Processing PostsControl…

---

## [Is it possible to follow redirects outside of Rails on an integration test?](https://www.ruby-forum.com/t/is-it-possible-to-follow-redirects-outside-of-rails-on-an-integration-test/176336)

<div class="topic-metadata">

**Author:** [@JSPablo\_FernSSSSnd](https://www.ruby-forum.com/u/JSPablo_FernSSSSnd)\
**Replies:** 3\
**Last updated:** [September 30, 2009, 8:30pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-follow-redirects-outside-of-rails-on-an-integration-test/176336 "2009-09-30T20:30:29Z")

</div>

Hello, Is it possible to follow redirects outside of Rails on an integration test? I’m trying to test my whole log in procedure and part of it includes authenticating with OpenID. I have rots running locally but when…

---

## [Rjb failure: can't create Java VM](https://www.ruby-forum.com/t/rjb-failure-cant-create-java-vm/176451)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 0\
**Last updated:** [September 30, 2009, 7:00pm UTC](https://www.ruby-forum.com/t/rjb-failure-cant-create-java-vm/176451 "2009-09-30T19:00:44Z")

</div>

Help! On my Mac dev machine, everything works, and obviously on my Debian production server something is wrong. I set JAVA\_HOME and LD\_LIBRARY\_PATH in environment.rb, but it’s still blocked. Anyone has experience wi…

---

## [How to search and replace all urls on a HTML string using RUBY gsub](https://www.ruby-forum.com/t/how-to-search-and-replace-all-urls-on-a-html-string-using-ruby-gsub/176414)

<div class="topic-metadata">

**Author:** [@newx](https://www.ruby-forum.com/u/newx)\
**Replies:** 3\
**Last updated:** [September 30, 2009, 6:40pm UTC](https://www.ruby-forum.com/t/how-to-search-and-replace-all-urls-on-a-html-string-using-ruby-gsub/176414 "2009-09-30T18:40:57Z")

</div>

Hi , I trying to search and replace all urls on a HTML string using gsub . CODE html = “”; pattern = /\<a href=\['“\]?(\[^'”\> \])\['"\]?\[^\>\]\>(.\*?)\</a\>/mo replace = “#{$2}” html\_output = html.gsub(pattern,replace) T…

---

## [Application Release Tracking & Version Numbers](https://www.ruby-forum.com/t/application-release-tracking-version-numbers/164967)

<div class="topic-metadata">

**Author:** [@kelhart](https://www.ruby-forum.com/u/kelhart)\
**Replies:** 2\
**Last updated:** [September 30, 2009, 6:25pm UTC](https://www.ruby-forum.com/t/application-release-tracking-version-numbers/164967 "2009-09-30T18:25:08Z")

</div>

Forgive me if this has been solved in its entirety, although I’ve only seen bits and pieces of this solved in various ways. I’m hoping a few of you have figured out an elegant solution to this problem. Over time I’ve …

---

## [Vim: What html plugin do you use to help you close tags?](https://www.ruby-forum.com/t/vim-what-html-plugin-do-you-use-to-help-you-close-tags/176448)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 1\
**Last updated:** [September 30, 2009, 6:18pm UTC](https://www.ruby-forum.com/t/vim-what-html-plugin-do-you-use-to-help-you-close-tags/176448 "2009-09-30T18:18:52Z")

</div>

I have tried to use the closetag.vim, but would always get numerous errors when pressing ctrl-\_ that I would have to click the enter key for each of the errors before it would finally close the tag for me. I started u…

---

## [Integration of rake tasks and shell commands with Rails generators?](https://www.ruby-forum.com/t/integration-of-rake-tasks-and-shell-commands-with-rails-generators/175838)

<div class="topic-metadata">

**Author:** [@elliottg](https://www.ruby-forum.com/u/elliottg)\
**Replies:** 3\
**Last updated:** [September 30, 2009, 6:00pm UTC](https://www.ruby-forum.com/t/integration-of-rake-tasks-and-shell-commands-with-rails-generators/175838 "2009-09-30T18:00:32Z")

</div>

Just starting to learn about rake and Rails generators… I have a couple Qs I have yet to find answers to. Can shell commands somehow be called from a generator’s manifest method? If so, is that poor form? Can rake ta…

---

## [Is it possible to deploy a rails app, or is that something that cannot be done yet?](https://www.ruby-forum.com/t/is-it-possible-to-deploy-a-rails-app-or-is-that-something-that-cannot-be-done-yet/176415)

<div class="topic-metadata">

**Author:** [@DMDMDM](https://www.ruby-forum.com/u/DMDMDM)\
**Replies:** 4\
**Last updated:** [September 30, 2009, 5:58pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-deploy-a-rails-app-or-is-that-something-that-cannot-be-done-yet/176415 "2009-09-30T17:58:47Z")

</div>

Is it possible to deploy a rails app, or is that something that cannot be done yet?

---

## [Populating parent relationships automagically](https://www.ruby-forum.com/t/populating-parent-relationships-automagically/176405)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [September 30, 2009, 5:44pm UTC](https://www.ruby-forum.com/t/populating-parent-relationships-automagically/176405 "2009-09-30T17:44:08Z")

</div>

I would like to populate parent relationships when I load children objects. I have a relatively complex object graph. Something like: Thing \<1-\> Components \<1-\> Assembly \<-\> Parts The notion is that we allow a Thing…

---

## [DateTime optionally containing microseconds](https://www.ruby-forum.com/t/datetime-optionally-containing-microseconds/176433)

<div class="topic-metadata">

**Author:** [@ambrice](https://www.ruby-forum.com/u/ambrice)\
**Replies:** 1\
**Last updated:** [September 30, 2009, 5:23pm UTC](https://www.ruby-forum.com/t/datetime-optionally-containing-microseconds/176433 "2009-09-30T17:23:39Z")

</div>

Hi all, I’m sending DateTimes over soap to JADE agent system. If I send DateTime.now over it is accepted fine… and ends up as: 2009-09-30T09:20:52.959452-03:00 However, if I convert a Rails model field to datetime an…

---

## [What is this view syntax? Old beast forum code](https://www.ruby-forum.com/t/what-is-this-view-syntax-old-beast-forum-code/176437)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 2\
**Last updated:** [September 30, 2009, 5:08pm UTC](https://www.ruby-forum.com/t/what-is-this-view-syntax-old-beast-forum-code/176437 "2009-09-30T17:08:57Z")

</div>

Hey folks A long time ago, before i started working at this company, we used a Beast forum. The beast code (models, controllers and views) were all just lumped in with our app code, but when we moved to a new version …

---

## [Last day to sign up for "Rails for Everyone"](https://www.ruby-forum.com/t/last-day-to-sign-up-for-rails-for-everyone/176441)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 0\
**Last updated:** [September 30, 2009, 4:28pm UTC](https://www.ruby-forum.com/t/last-day-to-sign-up-for-rails-for-everyone/176441 "2009-09-30T16:28:01Z")

</div>

Hello all, Just a reminder that today is the deadline for the public workshop on Saturday, Oct 24, Rails for Everyone. $395 in Chicago. For those on this list that might not already be familiar with Purple Workshops,…

---

## [Active resource record relationships](https://www.ruby-forum.com/t/active-resource-record-relationships/170612)

<div class="topic-metadata">

**Author:** [@Jedrin](https://www.ruby-forum.com/u/Jedrin)\
**Replies:** 8\
**Last updated:** [September 30, 2009, 3:56pm UTC](https://www.ruby-forum.com/t/active-resource-record-relationships/170612 "2009-09-30T15:56:38Z")

</div>

I tried to work out an active resource example with complex relationships between records and had not much luck so I gave up and manipulate \*\_id fields myself to get around this in a somewhat cludgy way at times. I am…

---

## [Django like admin interface](https://www.ruby-forum.com/t/django-like-admin-interface/176429)

<div class="topic-metadata">

**Author:** [@prionko](https://www.ruby-forum.com/u/prionko)\
**Replies:** 3\
**Last updated:** [September 30, 2009, 2:40pm UTC](https://www.ruby-forum.com/t/django-like-admin-interface/176429 "2009-09-30T14:40:10Z")

</div>

Hi, I am building an application where i need to have an admin interface from where the admin can assign permission for different methods (create, edit etc.) in controller based on roles . It should be similar to dj…

---

## [File encryption and attachment\_fu](https://www.ruby-forum.com/t/file-encryption-and-attachment-fu/176432)

<div class="topic-metadata">

**Author:** [@neetal](https://www.ruby-forum.com/u/neetal)\
**Replies:** 0\
**Last updated:** [September 30, 2009, 2:36pm UTC](https://www.ruby-forum.com/t/file-encryption-and-attachment-fu/176432 "2009-09-30T14:36:31Z")

</div>

Hello All, Am using attachment\_fu for file upload. Now i have the requirement of encrypting the file and storing it. While viewing/downloading the file have to decrypt it.Has anyone done it along with attachment\_fu. …

---

## [Validation page problems](https://www.ruby-forum.com/t/validation-page-problems/176409)

<div class="topic-metadata">

**Author:** [@thriving](https://www.ruby-forum.com/u/thriving)\
**Replies:** 2\
**Last updated:** [September 30, 2009, 12:54pm UTC](https://www.ruby-forum.com/t/validation-page-problems/176409 "2009-09-30T12:54:42Z")

</div>

I have made form for create user page and edit user page in create user page there is no password and password confirmation text\_field as the password will be sent through email. but in edit page there will be passwo…

---

## [Store data in db from XML](https://www.ruby-forum.com/t/store-data-in-db-from-xml/176353)

<div class="topic-metadata">

**Author:** [@smit\_shah](https://www.ruby-forum.com/u/smit_shah)\
**Replies:** 5\
**Last updated:** [September 30, 2009, 12:45pm UTC](https://www.ruby-forum.com/t/store-data-in-db-from-xml/176353 "2009-09-30T12:45:34Z")

</div>

Hi All… I am trying to parsing data from XML. But, I am not able to store it in database. So, any one can help me out??? Thanks in advance…

---

## [Cronedit in rails](https://www.ruby-forum.com/t/cronedit-in-rails/176425)

<div class="topic-metadata">

**Author:** [@kuppusamy](https://www.ruby-forum.com/u/kuppusamy)\
**Replies:** 0\
**Last updated:** [September 30, 2009, 11:31am UTC](https://www.ruby-forum.com/t/cronedit-in-rails/176425 "2009-09-30T11:31:24Z")

</div>

When I tried to integrate the cronedit gem with the rails2.1 application it is not working. The pages becomes blank. I think it is not getting work. I tried the following things. ./script/console I added some cron…

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

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