# Rails

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

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

---

## [Validations fail but updates the model](https://www.ruby-forum.com/t/validations-fail-but-updates-the-model/147304)

<div class="topic-metadata">

**Author:** [@eyp](https://www.ruby-forum.com/u/eyp)\
**Replies:** 0\
**Last updated:** [August 30, 2008, 6:49pm UTC](https://www.ruby-forum.com/t/validations-fail-but-updates-the-model/147304 "2008-08-30T18:49:20Z")

</div>

Hello, I’m using update\_attributes and some validations on update, although some of that validations fail (error messages are shown in the view), the model is modified on DB, but when I create the model at first time …

---

## [Announcing our first Rails web application: Tip Jar for Your Blogs (Mephisto or Typo )](https://www.ruby-forum.com/t/announcing-our-first-rails-web-application-tip-jar-for-your-blogs-mephisto-or-typo/147305)

<div class="topic-metadata">

**Author:** [@cnick](https://www.ruby-forum.com/u/cnick)\
**Replies:** 0\
**Last updated:** [August 30, 2008, 5:57pm UTC](https://www.ruby-forum.com/t/announcing-our-first-rails-web-application-tip-jar-for-your-blogs-mephisto-or-typo/147305 "2008-08-30T17:57:16Z")

</div>

Hello Rails Community, I have worked hard in developing this “Tip Jar” widget web application – http://www.TipMyBlog.net – for a while now, and I would like to share it with the RoR community. Our background was Jav…

---

## [Rendering User attributes in XML](https://www.ruby-forum.com/t/rendering-user-attributes-in-xml/147119)

<div class="topic-metadata">

**Author:** [@chunkyslink](https://www.ruby-forum.com/u/chunkyslink)\
**Replies:** 12\
**Last updated:** [August 30, 2008, 5:53pm UTC](https://www.ruby-forum.com/t/rendering-user-attributes-in-xml/147119 "2008-08-30T17:53:56Z")

</div>

Let’s say an app has a User, and a User has many friends. Also, let’s say the app authentication was built on the restful\_authentication plugin, and we have email and password in the Users table. The friends controlle…

---

## [Venture a guess as to why Rmagick / Imagemagick forgets to shrink thumbnail?](https://www.ruby-forum.com/t/venture-a-guess-as-to-why-rmagick-imagemagick-forgets-to-shrink-thumbnail/147301)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [August 30, 2008, 5:49pm UTC](https://www.ruby-forum.com/t/venture-a-guess-as-to-why-rmagick-imagemagick-forgets-to-shrink-thumbnail/147301 "2008-08-30T17:49:05Z")

</div>

I am running Rmagick and Imagemagick just fine on my Windows XP machine ( thanks Rick ) and all is well in the world. I’ve moved the identical source deck to another machine that appears to have an identical work envi…

---

## [Is it possible to execute code before and after \*all\* integration tests are executed?](https://www.ruby-forum.com/t/is-it-possible-to-execute-code-before-and-after-all-integration-tests-are-executed/147297)

<div class="topic-metadata">

**Author:** [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Replies:** 0\
**Last updated:** [August 30, 2008, 4:18pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-execute-code-before-and-after-all-integration-tests-are-executed/147297 "2008-08-30T16:18:57Z")

</div>

Hi, Is it possible to execute code before and after all integration tests are executed? I’m trying to do reporting based on executed tests. Right now each test creates detailed reports based on its execution and upda…

---

## [Can a "facebook" application be written in RoR?](https://www.ruby-forum.com/t/can-a-facebook-application-be-written-in-ror/147222)

<div class="topic-metadata">

**Author:** [@ewagner](https://www.ruby-forum.com/u/ewagner)\
**Replies:** 4\
**Last updated:** [August 30, 2008, 2:16pm UTC](https://www.ruby-forum.com/t/can-a-facebook-application-be-written-in-ror/147222 "2008-08-30T14:16:02Z")

</div>

(Disclaimer: I am new to RoR, coming from developing in ASP.NET. I am looking to start my next project in an open source environment to 1) cut down on the costs of tools and hosting, and 2) to learn something new. The…

---

## [Quick Question with if else statements](https://www.ruby-forum.com/t/quick-question-with-if-else-statements/147264)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 3\
**Last updated:** [August 30, 2008, 1:49pm UTC](https://www.ruby-forum.com/t/quick-question-with-if-else-statements/147264 "2008-08-30T13:49:40Z")

</div>

Hello, I just wanted to see if I could reduce the following block of code to a simple 1 liner… if @map\_company\_name == 1 contact.Fields.Add(@cdoPR\_Company, @companyname) end How can you do this? I thought I could p…

---

## [Default Page Only?](https://www.ruby-forum.com/t/default-page-only/147260)

<div class="topic-metadata">

**Author:** [@dizzyd](https://www.ruby-forum.com/u/dizzyd)\
**Replies:** 7\
**Last updated:** [August 30, 2008, 1:49pm UTC](https://www.ruby-forum.com/t/default-page-only/147260 "2008-08-30T13:49:40Z")

</div>

I have installed RoR on and XP machine running XAMPP. I followed the installation steps provided from here: http://tinyurl.com/6py2v7 and I am following a Lynda.com tutorial found here: http://movielibrary.lynda.com/…

---

## [Ajax Table Plugin](https://www.ruby-forum.com/t/ajax-table-plugin/147085)

<div class="topic-metadata">

**Author:** [@gamafranco](https://www.ruby-forum.com/u/gamafranco)\
**Replies:** 3\
**Last updated:** [August 30, 2008, 12:01pm UTC](https://www.ruby-forum.com/t/ajax-table-plugin/147085 "2008-08-30T12:01:30Z")

</div>

Hi, I would like to know if there is a plug-in to create and manipulate Ajax Tables. I have tried active scaffold, but the project has halted and the plug-in is not stable. I’ve also tried Hobo, but this plug-in requ…

---

## [Flash embeding in pdf](https://www.ruby-forum.com/t/flash-embeding-in-pdf/147287)

<div class="topic-metadata">

**Author:** [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Replies:** 0\
**Last updated:** [August 30, 2008, 11:21am UTC](https://www.ruby-forum.com/t/flash-embeding-in-pdf/147287 "2008-08-30T11:21:20Z")

</div>

Hi all I want to embed flash with pdf. I guess i cannot directly do that…I will have to first convert flash to jpg or other image format and then put it in pdf. Let me know how can I do it? I am generating chart whic…

---

## [Make layout false](https://www.ruby-forum.com/t/make-layout-false/147279)

<div class="topic-metadata">

**Author:** [@srijith](https://www.ruby-forum.com/u/srijith)\
**Replies:** 5\
**Last updated:** [August 30, 2008, 10:37am UTC](https://www.ruby-forum.com/t/make-layout-false/147279 "2008-08-30T10:37:12Z")

</div>

Hi i am having lot of HTML files those files dont want layouts so, for each rhtml i am mentioning in controller list.rhtml,edit.rhtml def list render :layout=\>false end def edit render :layout=\>false end is any …

---

## [Teardown](https://www.ruby-forum.com/t/teardown/147284)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [August 30, 2008, 8:57am UTC](https://www.ruby-forum.com/t/teardown/147284 "2008-08-30T08:57:48Z")

</div>

Hi Could u please tell how I can call rake db:test:prepare from the test file I tried like below but not working def teardown system("#{rake db:test:prepare}") end Thanks in advance Sijo

---

## [Parameters seem inconsistent](https://www.ruby-forum.com/t/parameters-seem-inconsistent/147195)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 2\
**Last updated:** [August 30, 2008, 6:52am UTC](https://www.ruby-forum.com/t/parameters-seem-inconsistent/147195 "2008-08-30T06:52:02Z")

</div>

if I run script/console production it runs in production if I run script/server production it does nothing. Should I tell the core people to make this more consistent? Maybe a patch s.t. script/server production w…

---

## [Need only current month in dropo down using date\_select](https://www.ruby-forum.com/t/need-only-current-month-in-dropo-down-using-date-select/147278)

<div class="topic-metadata">

**Author:** [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Replies:** 0\
**Last updated:** [August 30, 2008, 6:50am UTC](https://www.ruby-forum.com/t/need-only-current-month-in-dropo-down-using-date-select/147278 "2008-08-30T06:50:55Z")

</div>

Hello Friends, I am using date\_select helper for displaying date, in an drop down i just want to display the current month/ or month section should be disabled… please hep me. regards Abhishek S.

---

## [Rake db:test:prepare](https://www.ruby-forum.com/t/rake-dbprepare/147200)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 2\
**Last updated:** [August 30, 2008, 6:17am UTC](https://www.ruby-forum.com/t/rake-dbprepare/147200 "2008-08-30T06:17:55Z")

</div>

Hi I am using postgres And I have already development database…When I give rake db:test:prepare it gives sh: dropdb: command not found sh: createdb: command not found But how ever test db is created Same happens a…

---

## [Split a long string of output data separated by space and occasional timestamp](https://www.ruby-forum.com/t/split-a-long-string-of-output-data-separated-by-space-and-occasional-timestamp/147272)

<div class="topic-metadata">

**Author:** [@nik](https://www.ruby-forum.com/u/nik)\
**Replies:** 1\
**Last updated:** [August 30, 2008, 4:39am UTC](https://www.ruby-forum.com/t/split-a-long-string-of-output-data-separated-by-space-and-occasional-timestamp/147272 "2008-08-30T04:39:25Z")

</div>

Hello all! I have this image program that outputs data which looks like this (w/o the quotes): “00:01:08 8384.12 8373.34 8334.84 8313.32 00:02:37 8284.22 8237.37 8199.34 00:03:13 8178.10 8138.12 8101.23…” So in Engl…

---

## [Bluehost hosting from scratch](https://www.ruby-forum.com/t/bluehost-hosting-from-scratch/147233)

<div class="topic-metadata">

**Author:** [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Replies:** 1\
**Last updated:** [August 30, 2008, 4:28am UTC](https://www.ruby-forum.com/t/bluehost-hosting-from-scratch/147233 "2008-08-30T04:28:18Z")

</div>

Hello Friends, Can anyone help me out how to setup RoR from scratch which include hosting part, configuring files from public folder, mongrel cluster n other thing which is required. From last two weeks i am trying…

---

## [ActiveLDAP cannot load in script/console](https://www.ruby-forum.com/t/activeldap-cannot-load-in-script-console/145868)

<div class="topic-metadata">

**Author:** [@gordons11](https://www.ruby-forum.com/u/gordons11)\
**Replies:** 1\
**Last updated:** [August 29, 2008, 9:53pm UTC](https://www.ruby-forum.com/t/activeldap-cannot-load-in-script-console/145868 "2008-08-29T21:53:46Z")

</div>

For some reason ActiveLDAP will not load when I run script/console and it says \`require’: no such file to load – active\_ldap (LoadError) It loads fine when I run script/server though. So whenever I want to load the c…

---

## [Logging to a database rather than a text file](https://www.ruby-forum.com/t/logging-to-a-database-rather-than-a-text-file/147254)

<div class="topic-metadata">

**Author:** [@DCDCDC](https://www.ruby-forum.com/u/DCDCDC)\
**Replies:** 2\
**Last updated:** [August 29, 2008, 9:42pm UTC](https://www.ruby-forum.com/t/logging-to-a-database-rather-than-a-text-file/147254 "2008-08-29T21:42:05Z")

</div>

Hi Y’all… I’m new to rails and would like to setup to log to a database rather than a text file as the standard function seems to do. Any help pointing me in the right direction to do this would be much appreciated. I…

---

## [Many to Many Relationship with One Model](https://www.ruby-forum.com/t/many-to-many-relationship-with-one-model/147180)

<div class="topic-metadata">

**Author:** [@starnix17](https://www.ruby-forum.com/u/starnix17)\
**Replies:** 2\
**Last updated:** [August 29, 2008, 8:52pm UTC](https://www.ruby-forum.com/t/many-to-many-relationship-with-one-model/147180 "2008-08-29T20:52:55Z")

</div>

Hey everyone, I’m working on allow users to follow other users in my app so they can receive updates to what all their friends are doing (like Facebook/ Twitter). I’m wondering on how the relationship would be for the …

---

## [Upgrading from InstantRails 1.7 to 2.0](https://www.ruby-forum.com/t/upgrading-from-instantrails-1-7-to-2-0/147249)

<div class="topic-metadata">

**Author:** [@mikec](https://www.ruby-forum.com/u/mikec)\
**Replies:** 0\
**Last updated:** [August 29, 2008, 8:15pm UTC](https://www.ruby-forum.com/t/upgrading-from-instantrails-1-7-to-2-0/147249 "2008-08-29T20:15:48Z")

</div>

I am trying to upgrade from InstantRails 1.7 to 2.0 and can not get rails apps created with 1.7 to run? Working through the How-to-update.txt file it states the following: You must create this SCGI configuration file …

---

## [Rendering partial forms](https://www.ruby-forum.com/t/rendering-partial-forms/147225)

<div class="topic-metadata">

**Author:** [@drsharp](https://www.ruby-forum.com/u/drsharp)\
**Replies:** 3\
**Last updated:** [August 29, 2008, 8:03pm UTC](https://www.ruby-forum.com/t/rendering-partial-forms/147225 "2008-08-29T20:03:59Z")

</div>

Hi, I’m trying to use partials to render some forms to create new records and to edit existing ones. But I’m getting the following error Called id for nil, which would mistakenly be 4 – if you really wanted the id of…

---

## [Complex form with ajax](https://www.ruby-forum.com/t/complex-form-with-ajax/147234)

<div class="topic-metadata">

**Author:** [@SSWolasSSSS](https://www.ruby-forum.com/u/SSWolasSSSS)\
**Replies:** 2\
**Last updated:** [August 29, 2008, 6:45pm UTC](https://www.ruby-forum.com/t/complex-form-with-ajax/147234 "2008-08-29T18:45:41Z")

</div>

does anyone know why; = render\_partial ‘comments/form’, :object =\> comment %\> works and = link\_to\_function ‘Edit’, nil, :id =\> “edit\_comment\_#{comment.id}\_link” do |page| page.replace\_html “comment\_#{comment.id}”, …

---

## [Application wide values/code](https://www.ruby-forum.com/t/application-wide-values-code/147022)

<div class="topic-metadata">

**Author:** [@pepe](https://www.ruby-forum.com/u/pepe)\
**Replies:** 4\
**Last updated:** [August 29, 2008, 6:35pm UTC](https://www.ruby-forum.com/t/application-wide-values-code/147022 "2008-08-29T18:35:09Z")

</div>

Hello, I know this is going to be very simple but I am new enough to not have it very clear. If I wanted to have values/constants and code available in all parts of the application (views, controllers and models), wh…

---

## [\[ANN\]\[ADV\] Rails Wheels search and licencing system for Rails software](https://www.ruby-forum.com/t/ann-adv-rails-wheels-search-and-licencing-system-for-rails-software/147235)

<div class="topic-metadata">

**Author:** [@elucify](https://www.ruby-forum.com/u/elucify)\
**Replies:** 0\
**Last updated:** [August 29, 2008, 6:05pm UTC](https://www.ruby-forum.com/t/ann-adv-rails-wheels-search-and-licencing-system-for-rails-software/147235 "2008-08-29T18:05:17Z")

</div>

Hi, I’d like to announce Rails Wheels, a way to find, and be notified about, plugins and other software that’s used on Rails sites, but also a way for authors of such software to earn part of their living from their …

---

## [Validation doesn't work (ActiveRecord::BaseWithoutTable)](https://www.ruby-forum.com/t/validation-doesnt-work-activerecord-basewithouttable/147230)

<div class="topic-metadata">

**Author:** [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Replies:** 1\
**Last updated:** [August 29, 2008, 5:50pm UTC](https://www.ruby-forum.com/t/validation-doesnt-work-activerecord-basewithouttable/147230 "2008-08-29T17:50:02Z")

</div>

Hi, I understand that the active\_record\_base\_without\_table is supposed to be an easy install. So I am not sure why the validation doesn’t work out of the box (base\_without\_table.rb attached). No valdn error msgs and …

---

## [RE: Different rails environment](https://www.ruby-forum.com/t/re-different-rails-environment/147221)

<div class="topic-metadata">

**Author:** [@Chris\_Edwards](https://www.ruby-forum.com/u/Chris_Edwards)\
**Replies:** 1\
**Last updated:** [August 29, 2008, 3:10pm UTC](https://www.ruby-forum.com/t/re-different-rails-environment/147221 "2008-08-29T15:10:39Z")

</div>

Hi guys, Is it possible to have a different environment, other than the Development, Test, and Live. I’d like to run a development copy on my laptop while I’m on the road, pointing to it’s own mySQL db etc. I though…

---

## [Writing Rails tutorial](https://www.ruby-forum.com/t/writing-rails-tutorial/147074)

<div class="topic-metadata">

**Author:** [@bigos](https://www.ruby-forum.com/u/bigos)\
**Replies:** 19\
**Last updated:** [August 29, 2008, 3:03pm UTC](https://www.ruby-forum.com/t/writing-rails-tutorial/147074 "2008-08-29T15:03:02Z")

</div>

I have seen few posts where people are complaining about of Rails documentation. I myself had lots of troubles with it, perhaps because of my exposure to PHP. This is my third attempt to learn Rails, and at last I am …

---

## [Need help to implement Business logic](https://www.ruby-forum.com/t/need-help-to-implement-business-logic/147223)

<div class="topic-metadata">

**Author:** [@jitendra](https://www.ruby-forum.com/u/jitendra)\
**Replies:** 0\
**Last updated:** [August 29, 2008, 3:02pm UTC](https://www.ruby-forum.com/t/need-help-to-implement-business-logic/147223 "2008-08-29T15:02:26Z")

</div>

Hey all, i am new to RoR and want to make a module FAIRPAY Facebook application as following… The user calculates their ranking They compare their ranking with their friends So if I have 100 friends who have used …

---

## [Javascript files empty](https://www.ruby-forum.com/t/javascript-files-empty/147218)

<div class="topic-metadata">

**Author:** [@mrdamien](https://www.ruby-forum.com/u/mrdamien)\
**Replies:** 2\
**Last updated:** [August 29, 2008, 2:58pm UTC](https://www.ruby-forum.com/t/javascript-files-empty/147218 "2008-08-29T14:58:32Z")

</div>

Hi all, I have moved my code from localhost to another remote host. But right now, when I use my web application, all javascript files are empty despite the fact I didn’t touch anything in the code. Is someone alread…

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

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