# Rails

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

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

---

## [Inheritance VS DelegateClass](https://www.ruby-forum.com/t/inheritance-vs-delegateclass/162229)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 0\
**Last updated:** [March 7, 2009, 2:06am UTC](https://www.ruby-forum.com/t/inheritance-vs-delegateclass/162229 "2009-03-07T02:06:06Z")

</div>

Im trying to understand why TempFile extends from DelegateClass(File) instead of just file. Is it because they didn’t want all the functions that come with the File class and just limit it. Why even have the Delegate…

---

## [Change the start of auto\_increment?](https://www.ruby-forum.com/t/change-the-start-of-auto-increment/162220)

<div class="topic-metadata">

**Author:** [@loader](https://www.ruby-forum.com/u/loader)\
**Replies:** 3\
**Last updated:** [March 7, 2009, 1:34am UTC](https://www.ruby-forum.com/t/change-the-start-of-auto-increment/162220 "2009-03-07T01:34:07Z")

</div>

Hello everyone! I have a table, “posts”. And I want to start the id from 1000. Is that possible? Do I need a migration? Thank your for your help!

---

## [Filter defined in lib file required in environment.rb disappears from filter\_chain in production en](https://www.ruby-forum.com/t/filter-defined-in-lib-file-required-in-environment-rb-disappears-from-filter-chain-in-production-en/162215)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [March 6, 2009, 11:51pm UTC](https://www.ruby-forum.com/t/filter-defined-in-lib-file-required-in-environment-rb-disappears-from-filter-chain-in-production-en/162215 "2009-03-06T23:51:06Z")

</div>

Hi all, I have initially posted this question to stack overflow but I think it’s specific enough that it warrants being posted here. I hope this is not bashed as crossposting. Here’s the original question: It’s up …

---

## [Open Source Rails Job Board App?](https://www.ruby-forum.com/t/open-source-rails-job-board-app/162221)

<div class="topic-metadata">

**Author:** [@Mark\_ASRichman](https://www.ruby-forum.com/u/Mark_ASRichman)\
**Replies:** 0\
**Last updated:** [March 6, 2009, 11:43pm UTC](https://www.ruby-forum.com/t/open-source-rails-job-board-app/162221 "2009-03-06T23:43:28Z")

</div>

Are there any open source Rails apps that have a job board feature? I am looking for the ability to: Sign up as an employer Sign up as a jobseeker Post a job Post a resume/profile Search jobs Search jobseekers Contact…

---

## [Cut off text if its too big for a table? (Resize table?)](https://www.ruby-forum.com/t/cut-off-text-if-its-too-big-for-a-table-resize-table/162200)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 3\
**Last updated:** [March 6, 2009, 11:24pm UTC](https://www.ruby-forum.com/t/cut-off-text-if-its-too-big-for-a-table-resize-table/162200 "2009-03-06T23:24:14Z")

</div>

I made a nice (imo), custom table for my posts while following a simple blog in Rails tutorial. I was wondering tho if I can set a maximum width for a table row/cell and have it cut off text if its too long to fit, so …

---

## [Multiple args with named scope.. problem](https://www.ruby-forum.com/t/multiple-args-with-named-scope-problem/162208)

<div class="topic-metadata">

**Author:** [@morgan](https://www.ruby-forum.com/u/morgan)\
**Replies:** 4\
**Last updated:** [March 6, 2009, 11:21pm UTC](https://www.ruby-forum.com/t/multiple-args-with-named-scope-problem/162208 "2009-03-06T23:21:33Z")

</div>

i’m trying to figure out what i’m doing wrong here. named\_scope :schedule\_limits, lambda { |\*args| {:conditions =\> \[“id = ? and sched\_start \> ? and sched\_start \< ?” , ( args\[0\], args\[1\], args\[2\]) \]} } it just produce…

---

## [Association broken when upgrading from rails 1.2.6 to 2.2.2](https://www.ruby-forum.com/t/association-broken-when-upgrading-from-rails-1-2-6-to-2-2-2/162159)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 9\
**Last updated:** [March 6, 2009, 10:44pm UTC](https://www.ruby-forum.com/t/association-broken-when-upgrading-from-rails-1-2-6-to-2-2-2/162159 "2009-03-06T22:44:16Z")

</div>

I have an app with the following models: course belongs\_to :semester semester has\_many: courses belongs\_to :education education has\_many :semesters In my old app (rails 1.2.6) I was able to access variables via c…

---

## [Get model.create(params) to silently skip unknown attributes](https://www.ruby-forum.com/t/get-model-create-params-to-silently-skip-unknown-attributes/162195)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 2\
**Last updated:** [March 6, 2009, 10:12pm UTC](https://www.ruby-forum.com/t/get-model-create-params-to-silently-skip-unknown-attributes/162195 "2009-03-06T22:12:48Z")

</div>

Hi, I have a remote website that will be sending me some data which I want to save in one of my models. The problem is that it will also send some attributes such as attribute\_1, attribute\_2, etc which I don’t want to …

---

## [Formulas in mysql database for rails app](https://www.ruby-forum.com/t/formulas-in-mysql-database-for-rails-app/162211)

<div class="topic-metadata">

**Author:** [@eyal](https://www.ruby-forum.com/u/eyal)\
**Replies:** 1\
**Last updated:** [March 6, 2009, 9:57pm UTC](https://www.ruby-forum.com/t/formulas-in-mysql-database-for-rails-app/162211 "2009-03-06T21:57:52Z")

</div>

Hello, any ideas how I might store a formula in a mysql database and access it through my rails application. For example, say I have a model Formula, which has two integer variables formula.var1 and formula.var2. An…

---

## [Rake test:functionals -\> Task not supported by ''](https://www.ruby-forum.com/t/rake-test-functionals-task-not-supported-by/162214)

<div class="topic-metadata">

**Author:** [@fritza](https://www.ruby-forum.com/u/fritza)\
**Replies:** 2\
**Last updated:** [March 6, 2009, 9:53pm UTC](https://www.ruby-forum.com/t/rake-test-functionals-task-not-supported-by/162214 "2009-03-06T21:53:44Z")

</div>

I have a Rails project in which I’ve been using “rake test” tasks with great success. At some point (there were a few changes in the interim), rake started aborting test tasks. Here is the dialog: === $ rake test:fun…

---

## [Attachment\_fu has\_attachment model logic reasoning?](https://www.ruby-forum.com/t/attachment-fu-has-attachment-model-logic-reasoning/162180)

<div class="topic-metadata">

**Author:** [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Replies:** 1\
**Last updated:** [March 6, 2009, 9:51pm UTC](https://www.ruby-forum.com/t/attachment-fu-has-attachment-model-logic-reasoning/162180 "2009-03-06T21:51:55Z")

</div>

Both Attachment\_fu and Paperclip use something like ‘has\_attachment’ to work their magic on an existing model like a User in the context of a profile picture or something like that. I find this idea pretty constrictin…

---

## [JasperReports and Ruby on Rails = disappeared?](https://www.ruby-forum.com/t/jasperreports-and-ruby-on-rails-disappeared/162185)

<div class="topic-metadata">

**Author:** [@InventoryTrackers](https://www.ruby-forum.com/u/InventoryTrackers)\
**Replies:** 2\
**Last updated:** [March 6, 2009, 9:50pm UTC](https://www.ruby-forum.com/t/jasperreports-and-ruby-on-rails-disappeared/162185 "2009-03-06T21:50:08Z")

</div>

I’ve been working for the last two weeks to follow the instructions for integrating Jasper Reports ( iReport) with Ruby on Rails and was ready to take the last steps when the article at http://wiki.rubyonrails.org/rai…

---

## [How can i know weather a record is saved or not?](https://www.ruby-forum.com/t/how-can-i-know-weather-a-record-is-saved-or-not/162139)

<div class="topic-metadata">

**Author:** [@SSZSmSS](https://www.ruby-forum.com/u/SSZSmSS)\
**Replies:** 7\
**Last updated:** [March 6, 2009, 9:41pm UTC](https://www.ruby-forum.com/t/how-can-i-know-weather-a-record-is-saved-or-not/162139 "2009-03-06T21:41:54Z")

</div>

after creating a new record of a model , using new() is there any way to know weather an record is saved to dataabase of is it still in “new” state ?

---

## [Guru Web Developer - Pune](https://www.ruby-forum.com/t/guru-web-developer-pune/196911)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [March 6, 2009, 9:01pm UTC](https://www.ruby-forum.com/t/guru-web-developer-pune/196911 "2009-03-06T21:01:58Z")

</div>

If you are a master of either Ruby on Rails (or Hibernate/Swing or other agile web development frameworks), JavaScript, HTML/CSS or Flash/ Flex, and have always dreamed of working in an energetic, highly skilled and e…

---

## [ActiveRecord::Base](https://www.ruby-forum.com/t/activerecord-base/162207)

<div class="topic-metadata">

**Author:** [@luboherko](https://www.ruby-forum.com/u/luboherko)\
**Replies:** 2\
**Last updated:** [March 6, 2009, 7:43pm UTC](https://www.ruby-forum.com/t/activerecord-base/162207 "2009-03-06T19:43:31Z")

</div>

Why this doesn’t work? ActiveRecord::Base.connection.execute("\\d") ? I use PostgreSQL server and this should be command to get list of all tables within a database. Is there a problem with privileges or PGSQL driver …

---

## [Starling/Workling Questions](https://www.ruby-forum.com/t/starling-workling-questions/162206)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 6, 2009, 7:14pm UTC](https://www.ruby-forum.com/t/starling-workling-questions/162206 "2009-03-06T19:14:46Z")

</div>

I’m pretty happy with how easy the setup and configuration is! I do have a couple questions that I would love some help with: How do I get logging? While workling is running in production, I do not see any logging…

---

## [Can map.root to point to a static html file in public dir?](https://www.ruby-forum.com/t/can-map-root-to-point-to-a-static-html-file-in-public-dir/162135)

<div class="topic-metadata">

**Author:** [@bagadoughnuts](https://www.ruby-forum.com/u/bagadoughnuts)\
**Replies:** 6\
**Last updated:** [March 6, 2009, 6:42pm UTC](https://www.ruby-forum.com/t/can-map-root-to-point-to-a-static-html-file-in-public-dir/162135 "2009-03-06T18:42:19Z")

</div>

Hi all, I’m trying to get map.root to point to a static html file in the public directory. I can’t just have index.html since I’m doing subdomains and any index.html file in there will be used as the actual page displ…

---

## [How to use observe\_field with text\_field](https://www.ruby-forum.com/t/how-to-use-observe-field-with-text-field/162134)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 3\
**Last updated:** [March 6, 2009, 5:41pm UTC](https://www.ruby-forum.com/t/how-to-use-observe-field-with-text-field/162134 "2009-03-06T17:41:59Z")

</div>

\#view \<%form\_tag :action=\>“some\_action” do -%\> \<%=text\_field "user","name"-%\> \<%=observe\_field :user\_name,:update=\>"name\_response",:url=\> {:controller=\>"login",:action=\>"check\_name"},:with=\>"input\_name",…

---

## [Variable variable names... are you confused?](https://www.ruby-forum.com/t/variable-variable-names-are-you-confused/162186)

<div class="topic-metadata">

**Author:** [@rsm](https://www.ruby-forum.com/u/rsm)\
**Replies:** 2\
**Last updated:** [March 6, 2009, 3:56pm UTC](https://www.ruby-forum.com/t/variable-variable-names-are-you-confused/162186 "2009-03-06T15:56:04Z")

</div>

Hi Guys, I got a helper method that I want to use more than once. The only thing that will change will be the variable that is used to collect the data. For example; def render\_blocks position = 0 @variable.collect…

---

## [2.2.2 issue - find :joins combining named assoc and SQL string](https://www.ruby-forum.com/t/2-2-2-issue-find-joins-combining-named-assoc-and-sql-string/159592)

<div class="topic-metadata">

**Author:** [@chris](https://www.ruby-forum.com/u/chris)\
**Replies:** 2\
**Last updated:** [March 6, 2009, 3:31pm UTC](https://www.ruby-forum.com/t/2-2-2-issue-find-joins-combining-named-assoc-and-sql-string/159592 "2009-03-06T15:31:22Z")

</div>

Hi all, I have a piece of code that worked perfectly in an older version of rails, but dies in 2.2.2 and I’d love any help anyone could give me getting it working again. @entity = Entity.find(params\[:id\]) @traits = …

---

## [Markaby a3e5f1 (github/why) with Rails 2.2.2](https://www.ruby-forum.com/t/markaby-a3e5f1-github-why-with-rails-2-2-2/162188)

<div class="topic-metadata">

**Author:** [@Simon\_Josi](https://www.ruby-forum.com/u/Simon_Josi)\
**Replies:** 0\
**Last updated:** [March 6, 2009, 3:28pm UTC](https://www.ruby-forum.com/t/markaby-a3e5f1-github-why-with-rails-2-2-2/162188 "2009-03-06T15:28:25Z")

</div>

I encounter the following error: NoMethodError (undefined method \`call’ for Markaby::Rails::ActionViewTemplateHandler:Class): Full Trace: gist:74906 · GitHub /simon

---

## [Problem with nested shallow in admin namespace](https://www.ruby-forum.com/t/problem-with-nested-shallow-in-admin-namespace/162190)

<div class="topic-metadata">

**Author:** [@pietia](https://www.ruby-forum.com/u/pietia)\
**Replies:** 0\
**Last updated:** [March 6, 2009, 3:28pm UTC](https://www.ruby-forum.com/t/problem-with-nested-shallow-in-admin-namespace/162190 "2009-03-06T15:28:25Z")

</div>

Hi all. I have admin namespace with project resource connected to it ( as written in code below ). I need only to access blocks/sections/menus ( which are all connected to projects in admin namespace ) via project ( …

---

## [Deleting images with attachment\_fu](https://www.ruby-forum.com/t/deleting-images-with-attachment-fu/162166)

<div class="topic-metadata">

**Author:** [@flychunjae](https://www.ruby-forum.com/u/flychunjae)\
**Replies:** 1\
**Last updated:** [March 6, 2009, 3:12pm UTC](https://www.ruby-forum.com/t/deleting-images-with-attachment-fu/162166 "2009-03-06T15:12:02Z")

</div>

Hi I’m trying to delete a user’s profile image that was uploaded with attachment\_fu directly to storage, without going to the view of the Photo controller. Basically the model is set up so user has many photos phot…

---

## [New Version of IBM\_DB Rails Adapter/Driver for IBM DataServers now available](https://www.ruby-forum.com/t/new-version-of-ibm-db-rails-adapter-driver-for-ibm-dataservers-now-available/162182)

<div class="topic-metadata">

**Author:** [@praveen](https://www.ruby-forum.com/u/praveen)\
**Replies:** 0\
**Last updated:** [March 6, 2009, 3:08pm UTC](https://www.ruby-forum.com/t/new-version-of-ibm-db-rails-adapter-driver-for-ibm-dataservers-now-available/162182 "2009-03-06T15:08:25Z")

</div>

Hi All, New version of IBM\_DB gem 1.0.2 is now available. This release provides support for specifying the connection timeout value in the adapter and hence in turn now you can specify the timeout value in the databa…

---

## [Rails 2.2 - Getting started - need some help](https://www.ruby-forum.com/t/rails-2-2-getting-started-need-some-help/162177)

<div class="topic-metadata">

**Author:** [@johan-vm](https://www.ruby-forum.com/u/johan-vm)\
**Replies:** 2\
**Last updated:** [March 6, 2009, 3:05pm UTC](https://www.ruby-forum.com/t/rails-2-2-getting-started-need-some-help/162177 "2009-03-06T15:05:24Z")

</div>

Hi, I’ve used ROR in the past, but recently started working with version 2.2. I don’t seem to be able to get started: I create a rails app: @rails music\_library@ I create a db using an SQlite gui: @music\_library\_DB.r…

---

## [Advanced Search Ruby on Rails](https://www.ruby-forum.com/t/advanced-search-ruby-on-rails/196909)

<div class="topic-metadata">

**Author:** [@khim\_sreang](https://www.ruby-forum.com/u/khim_sreang)\
**Replies:** 4\
**Last updated:** [March 6, 2009, 3:02pm UTC](https://www.ruby-forum.com/t/advanced-search-ruby-on-rails/196909 "2009-03-06T15:02:28Z")

</div>

Hi all, I want to make ruby on rails advance search with check box and redio bottom but i can’t to do that,please help me to do that by seding code or some concept.Pleae find attachment file to see detail of my form …

---

## [Image Crop](https://www.ruby-forum.com/t/image-crop/95792)

<div class="topic-metadata">

**Author:** [@dustin](https://www.ruby-forum.com/u/dustin)\
**Replies:** 2\
**Last updated:** [March 6, 2009, 3:00pm UTC](https://www.ruby-forum.com/t/image-crop/95792 "2009-03-06T15:00:50Z")

</div>

I want to make a program that will be able to take an image file and crop a square at a given coordinate value (X,Y). I would tell it the X,Y and the size of the crop ie. 350x350. The X,Y would be the center of the ne…

---

## [How: From database to "schema.rb" file?](https://www.ruby-forum.com/t/how-from-database-to-schema-rb-file/162178)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 2\
**Last updated:** [March 6, 2009, 2:22pm UTC](https://www.ruby-forum.com/t/how-from-database-to-schema-rb-file/162178 "2009-03-06T14:22:41Z")

</div>

Hi there! Is there a way to get a complete/up-to-date “schema.rb” file, based on just the database? (without using any migration files…) =========================== Background: I had stopped using migrations at so…

---

## [Multiplicate values of 2 textfields in a multi model form](https://www.ruby-forum.com/t/multiplicate-values-of-2-textfields-in-a-multi-model-form/162176)

<div class="topic-metadata">

**Author:** [@geek001](https://www.ruby-forum.com/u/geek001)\
**Replies:** 0\
**Last updated:** [March 6, 2009, 1:39pm UTC](https://www.ruby-forum.com/t/multiplicate-values-of-2-textfields-in-a-multi-model-form/162176 "2009-03-06T13:39:43Z")

</div>

Hi all, I tried to multiplicate two form fields in a tablerow just to inform the user and without bothering the server. I’m sure this seems to be a simple javascript problem, but all I got running was the following e…

---

## [How to pass current value of form field in link\_to?](https://www.ruby-forum.com/t/how-to-pass-current-value-of-form-field-in-link-to/158752)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 9\
**Last updated:** [March 6, 2009, 1:37pm UTC](https://www.ruby-forum.com/t/how-to-pass-current-value-of-form-field-in-link-to/158752 "2009-03-06T13:37:13Z")

</div>

Greetings to you, I’m trying to write a “preview” link, and need to pass along the current value of a text\_field to this link. I figure there is some simple Javascript way to do this, but so far haven’t figured it ou…

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

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