# Rails

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

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

---

## [Syntax highlighter for textile and rails?](https://www.ruby-forum.com/t/syntax-highlighter-for-textile-and-rails/107096)

<div class="topic-metadata">

**Author:** [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Replies:** 0\
**Last updated:** [June 18, 2007, 3:25am UTC](https://www.ruby-forum.com/t/syntax-highlighter-for-textile-and-rails/107096 "2007-06-18T03:25:39Z")

</div>

hi, i am using textile to render some notes. i was wondering if there is a another plugin that can make code or notes that need line numbers available? thanks

---

## [Works related](https://www.ruby-forum.com/t/works-related/107095)

<div class="topic-metadata">

**Author:** [@Bahia](https://www.ruby-forum.com/u/Bahia)\
**Replies:** 0\
**Last updated:** [June 18, 2007, 3:20am UTC](https://www.ruby-forum.com/t/works-related/107095 "2007-06-18T03:20:39Z")

</div>

Hi everybody! Where i found works related importants in ruby on rails? Thanks in advanced.

---

## [Attachment\_fu or UploadColumn?](https://www.ruby-forum.com/t/attachment-fu-or-uploadcolumn/107065)

<div class="topic-metadata">

**Author:** [@kelleysislander](https://www.ruby-forum.com/u/kelleysislander)\
**Replies:** 4\
**Last updated:** [June 18, 2007, 2:29am UTC](https://www.ruby-forum.com/t/attachment-fu-or-uploadcolumn/107065 "2007-06-18T02:29:35Z")

</div>

I’m just curious what most folks are using to handle image uploads - attachment\_fu, UploadColumn, or something else? Are there distinct advantages to one of these over the other(s), or is it sort of just a matter of t…

---

## [How Would I Display Today's Posts Only?](https://www.ruby-forum.com/t/how-would-i-display-todays-posts-only/107057)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 2\
**Last updated:** [June 18, 2007, 2:11am UTC](https://www.ruby-forum.com/t/how-would-i-display-todays-posts-only/107057 "2007-06-18T02:11:31Z")

</div>

I have a list of posts where I would simply like to display today’s post entries only. I thought about using if-then statements, but is there a better way to do it? (As you can tell, I’m an ignorant noob :slight\_smile…

---

## [Missing API definition!](https://www.ruby-forum.com/t/missing-api-definition/107089)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 18, 2007, 2:04am UTC](https://www.ruby-forum.com/t/missing-api-definition/107089 "2007-06-18T02:04:34Z")

</div>

Hello, I have API for the selection of the advertisements in my BDD, I it test http://localhost:3013/annonce/invoke Ca walks well but the problem that at the time of the consomation of the Web local service one with a…

---

## [RJS from .rjs stopped working, inline :update still works](https://www.ruby-forum.com/t/rjs-from-rjs-stopped-working-inline-update-still-works/107088)

<div class="topic-metadata">

**Author:** [@skwp](https://www.ruby-forum.com/u/skwp)\
**Replies:** 1\
**Last updated:** [June 18, 2007, 1:56am UTC](https://www.ruby-forum.com/t/rjs-from-rjs-stopped-working-inline-update-still-works/107088 "2007-06-18T01:56:33Z")

</div>

I’ve found this problem reported on several forums but have not seen a solution. A couple days ago all my RJS mysteriously stopped working. I can see the server return the appropriate code in firebug and when I cut & …

---

## [Problems with SOAP: duplicate XML declarations](https://www.ruby-forum.com/t/problems-with-soap-duplicate-xml-declarations/107072)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [June 18, 2007, 12:54am UTC](https://www.ruby-forum.com/t/problems-with-soap-duplicate-xml-declarations/107072 "2007-06-18T00:54:29Z")

</div>

Hi, I’m trying to implement a SOAP client using the native Ruby SOAP client library. Here’s the relevant bit of code: XSD::Charset.encoding = 'UTF8' # Set encoding wsdlfile = “http://ws.inter…

---

## [Using layouts with RJS](https://www.ruby-forum.com/t/using-layouts-with-rjs/107082)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 1\
**Last updated:** [June 17, 2007, 11:33pm UTC](https://www.ruby-forum.com/t/using-layouts-with-rjs/107082 "2007-06-17T23:33:23Z")

</div>

Here is a simple example that really has no real world use, but helps illustrate what I’m trying to do: Let’s say you have a before filter that sets a variable @popup = true. In your RHTML layout if @popup is true you…

---

## [Extending activerecord base with after\_initialize](https://www.ruby-forum.com/t/extending-activerecord-base-with-after-initialize/107030)

<div class="topic-metadata">

**Author:** [@webguy7890](https://www.ruby-forum.com/u/webguy7890)\
**Replies:** 1\
**Last updated:** [June 17, 2007, 10:55pm UTC](https://www.ruby-forum.com/t/extending-activerecord-base-with-after-initialize/107030 "2007-06-17T22:55:18Z")

</div>

hi, i am having problems getting after\_initialize for activerecord subclasses. basically, i am trying to use the guid plugin by andy singleton. i am having problems extending the class to the plugins i installed, s…

---

## [How to register for railsconf europe 2007](https://www.ruby-forum.com/t/how-to-register-for-railsconf-europe-2007/107028)

<div class="topic-metadata">

**Author:** [@jan](https://www.ruby-forum.com/u/jan)\
**Replies:** 2\
**Last updated:** [June 17, 2007, 10:05pm UTC](https://www.ruby-forum.com/t/how-to-register-for-railsconf-europe-2007/107028 "2007-06-17T22:05:09Z")

</div>

Anybody having the same problem? can’t get pas the survey question: ‘what’s youre busines’ the select box is empty error when hitting enter tried safari, camino, firefox and eventually parallels and firefox now th…

---

## [404 Error in any controller/action on Media Temple](https://www.ruby-forum.com/t/404-error-in-any-controller-action-on-media-temple/106900)

<div class="topic-metadata">

**Author:** [@MatSSS\_as\_quaglia\_M](https://www.ruby-forum.com/u/MatSSS_as_quaglia_M)\
**Replies:** 4\
**Last updated:** [June 17, 2007, 10:03pm UTC](https://www.ruby-forum.com/t/404-error-in-any-controller-action-on-media-temple/106900 "2007-06-17T22:03:01Z")

</div>

Hi everybody. I’m a newbie on RoR. I have some experiencie developing in PHP or Java, but I’m just starting with RoR. A few days ago I signed up to the (gs) Grid Service on Media Temple. This is my very first experie…

---

## [HABTM relations insertion](https://www.ruby-forum.com/t/habtm-relations-insertion/107071)

<div class="topic-metadata">

**Author:** [@emuen](https://www.ruby-forum.com/u/emuen)\
**Replies:** 1\
**Last updated:** [June 17, 2007, 6:21pm UTC](https://www.ruby-forum.com/t/habtm-relations-insertion/107071 "2007-06-17T18:21:43Z")

</div>

Hi. I need to insert a note in my notes table in my mysql db, that is related to my users table. #user.rb has\_many :notes #notes.rb has\_many :users and i have a table called users\_notes. That looks like this: …

---

## [SWFUpload problem](https://www.ruby-forum.com/t/swfupload-problem/107039)

<div class="topic-metadata">

**Author:** [@DavidB](https://www.ruby-forum.com/u/DavidB)\
**Replies:** 3\
**Last updated:** [June 17, 2007, 5:37pm UTC](https://www.ruby-forum.com/t/swfupload-problem/107039 "2007-06-17T17:37:38Z")

</div>

I am trying to use SWF Upload to upload images to my rails application WHen I try to upload a file using a normal HTML upload form, it works just fine. In other words, the upload method in my controller reads the file…

---

## [Inserting records into MySQL using RoR](https://www.ruby-forum.com/t/inserting-records-into-mysql-using-ror/107046)

<div class="topic-metadata">

**Author:** [@randall](https://www.ruby-forum.com/u/randall)\
**Replies:** 2\
**Last updated:** [June 17, 2007, 5:11pm UTC](https://www.ruby-forum.com/t/inserting-records-into-mysql-using-ror/107046 "2007-06-17T17:11:50Z")

</div>

Is it possible to insert records into a MySQL database by clicking on a link? I can do this with a form, but I see no tutorials, information on the internet that this is possible. I guess I am thinking along the lin…

---

## [ActiveRecord :: How To create a Record with a specific ID](https://www.ruby-forum.com/t/activerecord-how-to-create-a-record-with-a-specific-id/106831)

<div class="topic-metadata">

**Author:** [@rafael](https://www.ruby-forum.com/u/rafael)\
**Replies:** 8\
**Last updated:** [June 17, 2007, 5:07pm UTC](https://www.ruby-forum.com/t/activerecord-how-to-create-a-record-with-a-specific-id/106831 "2007-06-17T17:07:33Z")

</div>

Hi folx, may somebody could help me here? Problem: ID cannot be set, while creating or updating a record. We recieve vacancies in a csv format, which we import. But the ID changes every time because it increments at…

---

## [Mongrel not starting](https://www.ruby-forum.com/t/mongrel-not-starting/107044)

<div class="topic-metadata">

**Author:** [@ike](https://www.ruby-forum.com/u/ike)\
**Replies:** 3\
**Last updated:** [June 17, 2007, 4:36pm UTC](https://www.ruby-forum.com/t/mongrel-not-starting/107044 "2007-06-17T16:36:29Z")

</div>

Uh oh…I made NO changes to any of my files. Yet, from within Instant Rails, when I go to Configure - Rails Application, check my application then press “Start with Mongrel” I get: \*\* Starting Mongrel listening at 0.0.…

---

## [Looking up a hash in an array](https://www.ruby-forum.com/t/looking-up-a-hash-in-an-array/107050)

<div class="topic-metadata">

**Author:** [@partydrone](https://www.ruby-forum.com/u/partydrone)\
**Replies:** 2\
**Last updated:** [June 17, 2007, 4:05pm UTC](https://www.ruby-forum.com/t/looking-up-a-hash-in-an-array/107050 "2007-06-17T16:05:23Z")

</div>

I have created a STATES constant in my application-an array of hashes: STATES = \[ {‘code’ =\> ‘AL’, ‘name’ =\> ‘Alabama’}, {‘code’ =\> ‘AK’, ‘name’ =\> ‘Alaska’}, {‘code’ =\> ‘AZ’, ‘name’ =\> ‘Arizona’}, {‘code’ =\> ‘AR’, …

---

## [Calling RESTful 'scoped' INDEX when params\[:parent.id\] is no](https://www.ruby-forum.com/t/calling-restful-scoped-index-when-params-parent-id-is-no/107064)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 17, 2007, 2:04pm UTC](https://www.ruby-forum.com/t/calling-restful-scoped-index-when-params-parent-id-is-no/107064 "2007-06-17T14:04:10Z")

</div>

Jordon, I have a VERY hierchical database and am using a RESTful approach. Normally, when users’ enter the system they’ll cascade from level to level in the database and thus the hierchical information such as child…

---

## [Help ~Newb](https://www.ruby-forum.com/t/help-newb/107051)

<div class="topic-metadata">

**Author:** [@acoole](https://www.ruby-forum.com/u/acoole)\
**Replies:** 0\
**Last updated:** [June 17, 2007, 11:01am UTC](https://www.ruby-forum.com/t/help-newb/107051 "2007-06-17T11:01:13Z")

</div>

Ok, I have a Linux Server with Ruby On Rails, Apache and MYSQL. No root access though. Can i run a Ruby Server off there? Thanks, //Andrew

---

## [A new Cygwin & RMagick problem?](https://www.ruby-forum.com/t/a-new-cygwin-rmagick-problem/106887)

<div class="topic-metadata">

**Author:** [@beaon](https://www.ruby-forum.com/u/beaon)\
**Replies:** 1\
**Last updated:** [June 17, 2007, 7:30am UTC](https://www.ruby-forum.com/t/a-new-cygwin-rmagick-problem/106887 "2007-06-17T07:30:33Z")

</div>

Ok, so last time I installed Ruby, Rails and RMagick under Cygwin I had the ever so common fork problem which I solved with rebaseall. Now I’m 4500 miles from home on another computer (my Sister’s laptop) and I’ve go…

---

## ['requires lib/customException.rb' seems to need full path?](https://www.ruby-forum.com/t/requires-lib-customexception-rb-seems-to-need-full-path/107034)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 2\
**Last updated:** [June 17, 2007, 5:28am UTC](https://www.ruby-forum.com/t/requires-lib-customexception-rb-seems-to-need-full-path/107034 "2007-06-17T05:28:24Z")

</div>

Hi, My require ‘lib/commonException.rb’ line in application.rb works OK locally HOWEVER on my hosting provider I get a " no such file to load – lib/commonException.rb". I put the full path into the require statement …

---

## [Nocache do](https://www.ruby-forum.com/t/nocache-do/107045)

<div class="topic-metadata">

**Author:** [@gpygood](https://www.ruby-forum.com/u/gpygood)\
**Replies:** 0\
**Last updated:** [June 17, 2007, 5:23am UTC](https://www.ruby-forum.com/t/nocache-do/107045 "2007-06-17T05:23:41Z")

</div>

eveybody know cache do \<%cache do%\> \<%end%\> but,who know how to ‘nocache do’? this is cached \<%nocache do%\> this is \<%=rand%\> not cached \<%end%\> this is cached too

---

## [Newbie file\_column question](https://www.ruby-forum.com/t/newbie-file-column-question/107014)

<div class="topic-metadata">

**Author:** [@ramontayag](https://www.ruby-forum.com/u/ramontayag)\
**Replies:** 3\
**Last updated:** [June 17, 2007, 4:14am UTC](https://www.ruby-forum.com/t/newbie-file-column-question/107014 "2007-06-17T04:14:20Z")

</div>

Hi everyone. I’m running my rails app in a directory. I access it like this: www.server.com/railsapp. The problem is now when I use file\_column’s url\_for\_file\_column, it includes the railsapp directory at the beginnin…

---

## [Install RoR on Mac OS X](https://www.ruby-forum.com/t/install-ror-on-mac-os-x/106985)

<div class="topic-metadata">

**Author:** [@deevee](https://www.ruby-forum.com/u/deevee)\
**Replies:** 7\
**Last updated:** [June 17, 2007, 3:55am UTC](https://www.ruby-forum.com/t/install-ror-on-mac-os-x/106985 "2007-06-17T03:55:19Z")

</div>

Hi all… i’m newbie… i want to know about how to install RoR on my IBook G4 (Mac OS X). Thanks before… rgds dv

---

## [File Upload over AWS - performance problem](https://www.ruby-forum.com/t/file-upload-over-aws-performance-problem/107038)

<div class="topic-metadata">

**Author:** [@giantcranes](https://www.ruby-forum.com/u/giantcranes)\
**Replies:** 0\
**Last updated:** [June 17, 2007, 1:49am UTC](https://www.ruby-forum.com/t/file-upload-over-aws-performance-problem/107038 "2007-06-17T01:49:22Z")

</div>

Hi, I allow my users to upload files over an Action Web Service, the service uses attachment\_fu with amazon s3 storage. My application is server with a combination of apache 2.2 with a 4 mongrel cluster. When a user …

---

## [Textile editor helper help!](https://www.ruby-forum.com/t/textile-editor-helper-help/106972)

<div class="topic-metadata">

**Author:** [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Replies:** 10\
**Last updated:** [June 17, 2007, 12:50am UTC](https://www.ruby-forum.com/t/textile-editor-helper-help/106972 "2007-06-17T00:50:40Z")

</div>

phew, riddle me this. i can render the tool bar from a regular action, but if I render the ‘edit’ form via either rjs or \_partial, the toolbar does not render? for rjs i tried doing a replace\_html and insert, but the …

---

## [Multiple Sorts on an array, help with bad code smell](https://www.ruby-forum.com/t/multiple-sorts-on-an-array-help-with-bad-code-smell/106906)

<div class="topic-metadata">

**Author:** [@blinking\_bear](https://www.ruby-forum.com/u/blinking_bear)\
**Replies:** 5\
**Last updated:** [June 16, 2007, 10:51pm UTC](https://www.ruby-forum.com/t/multiple-sorts-on-an-array-help-with-bad-code-smell/106906 "2007-06-16T22:51:51Z")

</div>

I have an Array of active record objects that I need to sort by two attributes: similarity and activity, both are integers. I’m currently doing this by first sorting the array on the similarity field, and then using …

---

## [Rails Hosting - Reseller?](https://www.ruby-forum.com/t/rails-hosting-reseller/106986)

<div class="topic-metadata">

**Author:** [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Replies:** 3\
**Last updated:** [June 16, 2007, 9:52pm UTC](https://www.ruby-forum.com/t/rails-hosting-reseller/106986 "2007-06-16T21:52:40Z")

</div>

Can anyone recommend a really good hosting provider for Rails development? It’s important that it’s a reseller account, or at least a company I can work with to act as a proxy for my clients and their websites. – Ch…

---

## [Setting time zone based on IP?](https://www.ruby-forum.com/t/setting-time-zone-based-on-ip/107017)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 2\
**Last updated:** [June 16, 2007, 8:08pm UTC](https://www.ruby-forum.com/t/setting-time-zone-based-on-ip/107017 "2007-06-16T20:08:22Z")

</div>

Is it possible to set a person’s time zone based on their IP or some other factor than specifying their time zone?

---

## [Attachment\_fu S3 uploads killing mongrel](https://www.ruby-forum.com/t/attachment-fu-s3-uploads-killing-mongrel/106075)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 10\
**Last updated:** [June 16, 2007, 7:09pm UTC](https://www.ruby-forum.com/t/attachment-fu-s3-uploads-killing-mongrel/106075 "2007-06-16T19:09:12Z")

</div>

I was wondering if anyone here has seen a similar error to this… From mongrel.log /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/ transactions.rb:85:in transaction': Transaction aborted (ActiveRec…

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

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