# Rails

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

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

---

## [Simple websites (no DB?) with Rails?](https://www.ruby-forum.com/t/simple-websites-no-db-with-rails/114087)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [September 18, 2007, 5:48pm UTC](https://www.ruby-forum.com/t/simple-websites-no-db-with-rails/114087 "2007-09-18T17:48:03Z")

</div>

I have been learning Rails and building small things over the last several months. Question I have that has been surprising difficult to figure out is this (I know it seems somewhat nonsensical but ignore that). I r…

---

## [Addition to Postgres Broken pipe](https://www.ruby-forum.com/t/addition-to-postgres-broken-pipe/114898)

<div class="topic-metadata">

**Author:** [@mfaine](https://www.ruby-forum.com/u/mfaine)\
**Replies:** 0\
**Last updated:** [September 18, 2007, 5:09pm UTC](https://www.ruby-forum.com/t/addition-to-postgres-broken-pipe/114898 "2007-09-18T17:09:38Z")

</div>

Before the broken pipe message, I always first get: Errno::ECONNRESET (Connection reset by peer): /usr/local/lib/ruby/1.8/readbytes.rb:16:in read' /usr/local/lib/ruby/1.8/readbytes.rb:16:inreadbytes’ /usr/local/lib/ru…

---

## [Session\[:return\_to\] breaks in functional test](https://www.ruby-forum.com/t/session-return-to-breaks-in-functional-test/114895)

<div class="topic-metadata">

**Author:** [@milo](https://www.ruby-forum.com/u/milo)\
**Replies:** 0\
**Last updated:** [September 18, 2007, 5:03pm UTC](https://www.ruby-forum.com/t/session-return-to-breaks-in-functional-test/114895 "2007-09-18T17:03:47Z")

</div>

I’ve made use of much this code for user authentication: http://www.aidanf.net/rails\_user\_authentication\_tutorial Most of what the user needs to do is controlled by a ‘repository\_controller’, but when they try to log …

---

## [Distance\_of\_time\_in\_words hardcoded strings should be separa](https://www.ruby-forum.com/t/distance-of-time-in-words-hardcoded-strings-should-be-separa/114894)

<div class="topic-metadata">

**Author:** [@Jesper\_RSSSSnn-Jens](https://www.ruby-forum.com/u/Jesper_RSSSSnn-Jens)\
**Replies:** 0\
**Last updated:** [September 18, 2007, 4:51pm UTC](https://www.ruby-forum.com/t/distance-of-time-in-words-hardcoded-strings-should-be-separa/114894 "2007-09-18T16:51:31Z")

</div>

Hi everybody. After DHHs talk at RailsConf yesterday, it’s essential that some of you can rectify this patch for ruby on Rails Please help me an have a look at http://dev.rubyonrails.org/ticket/9587 Thanks! Jesper …

---

## [Filtering Active Records by date](https://www.ruby-forum.com/t/filtering-active-records-by-date/114879)

<div class="topic-metadata">

**Author:** [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Replies:** 3\
**Last updated:** [September 18, 2007, 4:12pm UTC](https://www.ruby-forum.com/t/filtering-active-records-by-date/114879 "2007-09-18T16:12:23Z")

</div>

How do you filter active records by date? I’m trying to get only entries where the date is between two other dates, but the filtering in the code below does not actually filter anything: @from\_date = Date.new(params\[…

---

## [Missing HTML using Caches\_page (Second Try)](https://www.ruby-forum.com/t/missing-html-using-caches-page-second-try/196470)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 0\
**Last updated:** [September 18, 2007, 3:57pm UTC](https://www.ruby-forum.com/t/missing-html-using-caches-page-second-try/196470 "2007-09-18T15:57:21Z")

</div>

All, I am having some issues with pages that are being cached using caches\_pages. This seems to be new behavoir although I can’t be sure as it might have been happening on pages and going unnoticed. Sometimes the htm…

---

## [Need help to install RMagick](https://www.ruby-forum.com/t/need-help-to-install-rmagick/114872)

<div class="topic-metadata">

**Author:** [@pacochin](https://www.ruby-forum.com/u/pacochin)\
**Replies:** 1\
**Last updated:** [September 18, 2007, 3:49pm UTC](https://www.ruby-forum.com/t/need-help-to-install-rmagick/114872 "2007-09-18T15:49:47Z")

</div>

Hi Guys, I need help to installed RMagick into my window laptop… I run a command and i got this error… D:\\myrails\\test\>gem install rmagick Bulk updating Gem source index for: http://gems.rubyforge.org Building nativ…

---

## [Distinct?](https://www.ruby-forum.com/t/distinct/114843)

<div class="topic-metadata">

**Author:** [@student](https://www.ruby-forum.com/u/student)\
**Replies:** 8\
**Last updated:** [September 18, 2007, 3:33pm UTC](https://www.ruby-forum.com/t/distinct/114843 "2007-09-18T15:33:17Z")

</div>

This should be easy, but I’m stumped… class X \< ActiveRecord::Base belongs\_to :y end class Y \< ActiveRecord::Base has\_many :x end The y table has a column names. The x table has a column value. I want the list …

---

## [Re: How do you design your RoR web applications?](https://www.ruby-forum.com/t/re-how-do-you-design-your-ror-web-applications/114884)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [September 18, 2007, 3:02pm UTC](https://www.ruby-forum.com/t/re-how-do-you-design-your-ror-web-applications/114884 "2007-09-18T15:02:09Z")

</div>

Hi I can’t speak for anybody else, but this is how I do it. Design the model that reflects the requirements - generate either DDL or a migration file, create database tables. Generate the app and the scaffold. Popul…

---

## [Help with mencoder? - converting to flv format](https://www.ruby-forum.com/t/help-with-mencoder-converting-to-flv-format/114871)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 1\
**Last updated:** [September 18, 2007, 2:26pm UTC](https://www.ruby-forum.com/t/help-with-mencoder-converting-to-flv-format/114871 "2007-09-18T14:26:29Z")

</div>

For my app, i need to let people upload movies, and then convert them to flv format. I’m using mencoder for this. I can convert older avis to flv ok with the options mencoder -ffourcc FLV1 -of lavf -ovc lavc -lavcop…

---

## [PDF::Writer vs Ruport](https://www.ruby-forum.com/t/pdf-writer-vs-ruport/114851)

<div class="topic-metadata">

**Author:** [@dan](https://www.ruby-forum.com/u/dan)\
**Replies:** 1\
**Last updated:** [September 18, 2007, 1:23pm UTC](https://www.ruby-forum.com/t/pdf-writer-vs-ruport/114851 "2007-09-18T13:23:47Z")

</div>

I have some simple PDF documents (a receipt and several 1-2 page business letters) that I need to generate from a typical rails application. As my client has a low volume site and very limited server resources I woul…

---

## [Re: Need help to install RMagick](https://www.ruby-forum.com/t/re-need-help-to-install-rmagick/114874)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [September 18, 2007, 1:07pm UTC](https://www.ruby-forum.com/t/re-need-help-to-install-rmagick/114874 "2007-09-18T13:07:44Z")

</div>

Hi To use RMagick you need to have ImageMagick or GraphicsMagick installed. All you need a c compiler to compile the extension natively. This involves installing Mingw to get gcc on Windows - or if you have access to…

---

## [Testing JSON stuff](https://www.ruby-forum.com/t/testing-json-stuff/114822)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [September 18, 2007, 12:25pm UTC](https://www.ruby-forum.com/t/testing-json-stuff/114822 "2007-09-18T12:25:37Z")

</div>

Hi, I have some code in a controller that receives JSON requests in this sort of format: http://www.json.org/JSONRequest.html However, I am not finding a way to test that, since: post() seems to insist on sending …

---

## [Posts to this group seem to disappear](https://www.ruby-forum.com/t/posts-to-this-group-seem-to-disappear/114861)

<div class="topic-metadata">

**Author:** [@tonypm](https://www.ruby-forum.com/u/tonypm)\
**Replies:** 0\
**Last updated:** [September 18, 2007, 10:27am UTC](https://www.ruby-forum.com/t/posts-to-this-group-seem-to-disappear/114861 "2007-09-18T10:27:17Z")

</div>

Hi, I am fairly convinced that there is a problem with posts not registering, and even going missing on this group. Yesterday I added a reply to the post pasted at end of this message: Now I cannot find this post or…

---

## [How to have multiple independently working controlllers for](https://www.ruby-forum.com/t/how-to-have-multiple-independently-working-controlllers-for/114859)

<div class="topic-metadata">

**Author:** [@topcho](https://www.ruby-forum.com/u/topcho)\
**Replies:** 0\
**Last updated:** [September 18, 2007, 9:48am UTC](https://www.ruby-forum.com/t/how-to-have-multiple-independently-working-controlllers-for/114859 "2007-09-18T09:48:12Z")

</div>

Hi, i have the following problem - on my web project i will have two areas (components) which will change (submit) independently. However, the two areas will interact with each other, too, when some link is clicked fo…

---

## [Html to pdf in rails](https://www.ruby-forum.com/t/html-to-pdf-in-rails/114847)

<div class="topic-metadata">

**Author:** [@dgm](https://www.ruby-forum.com/u/dgm)\
**Replies:** 3\
**Last updated:** [September 18, 2007, 9:40am UTC](https://www.ruby-forum.com/t/html-to-pdf-in-rails/114847 "2007-09-18T09:40:10Z")

</div>

I’ve been searching for a way to easily convert an html page into a pdf in my rails app and I haven’t found anything worth calling home about. Has anyone found something good out there?

---

## [Ruby multiple 	independent 	controller s 	one 	page](https://www.ruby-forum.com/t/ruby-multiple-independent-controller-s-one-page/114857)

<div class="topic-metadata">

**Author:** [@topcho](https://www.ruby-forum.com/u/topcho)\
**Replies:** 0\
**Last updated:** [September 18, 2007, 9:40am UTC](https://www.ruby-forum.com/t/ruby-multiple-independent-controller-s-one-page/114857 "2007-09-18T09:40:10Z")

</div>

Hi, i have the following problem - on my web project i will have two areas (components) which will change (submit) independently. However, the two areas will interact with each other, too, when some link is clicked fo…

---

## [Need som help to install](https://www.ruby-forum.com/t/need-som-help-to-install/114815)

<div class="topic-metadata">

**Author:** [@tordaaen](https://www.ruby-forum.com/u/tordaaen)\
**Replies:** 2\
**Last updated:** [September 18, 2007, 7:28am UTC](https://www.ruby-forum.com/t/need-som-help-to-install/114815 "2007-09-18T07:28:41Z")

</div>

Hi iam trying to install ruby, but i can only get it to work when i use the script/Server then the test page its ok " Listing contacts Name Bengt Magnusson Show Edit Destroy Malin Karlsson Show Edit Destroy New …

---

## [Server Administrator Part-time/Consultant](https://www.ruby-forum.com/t/server-administrator-part-time-consultant/114334)

<div class="topic-metadata">

**Author:** [@northband](https://www.ruby-forum.com/u/northband)\
**Replies:** 1\
**Last updated:** [September 18, 2007, 5:56am UTC](https://www.ruby-forum.com/t/server-administrator-part-time-consultant/114334 "2007-09-18T05:56:48Z")

</div>

Hi - We are getting ready to deploy our application this fall and are looking at a couple options in regards to hosting. We are deciding whether to use a slice hosting service or host our selves via co- location. Sl…

---

## [No XML rendered in this example, why not?](https://www.ruby-forum.com/t/no-xml-rendered-in-this-example-why-not/114848)

<div class="topic-metadata">

**Author:** [@yottameter](https://www.ruby-forum.com/u/yottameter)\
**Replies:** 0\
**Last updated:** [September 18, 2007, 5:21am UTC](https://www.ruby-forum.com/t/no-xml-rendered-in-this-example-why-not/114848 "2007-09-18T05:21:46Z")

</div>

I know I’m calling the controller correctly, I get XML Parsing Error: no element found .xml;example Line Number 1, Column 1: def example xml = Builder::XmlMarkup.new(:indent=\>2) xml.instruct! xml.person return xm…

---

## [How to display sales report for each month](https://www.ruby-forum.com/t/how-to-display-sales-report-for-each-month/114775)

<div class="topic-metadata">

**Author:** [@Joen](https://www.ruby-forum.com/u/Joen)\
**Replies:** 2\
**Last updated:** [September 18, 2007, 5:05am UTC](https://www.ruby-forum.com/t/how-to-display-sales-report-for-each-month/114775 "2007-09-18T05:05:02Z")

</div>

Hi there, I’ve been developing a system using ruby but i’m still new with this language. I want to display a sales report for each month. Means that, user can select the start date and end date that they want to view.…

---

## [Looking for media management project to join](https://www.ruby-forum.com/t/looking-for-media-management-project-to-join/114817)

<div class="topic-metadata">

**Author:** [@brad](https://www.ruby-forum.com/u/brad)\
**Replies:** 1\
**Last updated:** [September 18, 2007, 2:19am UTC](https://www.ruby-forum.com/t/looking-for-media-management-project-to-join/114817 "2007-09-18T02:19:28Z")

</div>

Hey all, I’m looking to join a project that puts a user’s media library online (ala icecast or GNUMP3d), and plays through their own media player or perhaps a Flash based mp3. Can anyone recommend a project? I’ve sear…

---

## [Page.visual\_effect :highlight](https://www.ruby-forum.com/t/page-visual-effect-highlight/71554)

<div class="topic-metadata">

**Author:** [@mic](https://www.ruby-forum.com/u/mic)\
**Replies:** 2\
**Last updated:** [September 18, 2007, 1:32am UTC](https://www.ruby-forum.com/t/page-visual-effect-highlight/71554 "2007-09-18T01:32:11Z")

</div>

I have some code that will do the highlight, fade effect on a block of text. It seems to work just fine until it is fired multiple times very rapidly. The end color matches a grey background and the start color is a …

---

## [How to find the dimensions of an uploaded image](https://www.ruby-forum.com/t/how-to-find-the-dimensions-of-an-uploaded-image/114840)

<div class="topic-metadata">

**Author:** [@taro](https://www.ruby-forum.com/u/taro)\
**Replies:** 3\
**Last updated:** [September 18, 2007, 12:34am UTC](https://www.ruby-forum.com/t/how-to-find-the-dimensions-of-an-uploaded-image/114840 "2007-09-18T00:34:17Z")

</div>

Hi! I’m trying to make a site that can upload image files, but instead of posting each picture as their size, I’d rather post them in thumbnails (thank goodness html can warp images for you). I need to know how I ca…

---

## [Ruby/Rails newb here. I need help getting started](https://www.ruby-forum.com/t/ruby-rails-newb-here-i-need-help-getting-started/114833)

<div class="topic-metadata">

**Author:** [@wardrich](https://www.ruby-forum.com/u/wardrich)\
**Replies:** 2\
**Last updated:** [September 18, 2007, 12:11am UTC](https://www.ruby-forum.com/t/ruby-rails-newb-here-i-need-help-getting-started/114833 "2007-09-18T00:11:15Z")

</div>

I’m trying to follow the videos over on http://www.loudthinking.com/arc/000328.html. The first bit of it was fine, but then it says to type “ruby script \\new\_controller Hello index”. My scripts folder doesn’t contain …

---

## [Bypassing normal template rendering?](https://www.ruby-forum.com/t/bypassing-normal-template-rendering/114795)

<div class="topic-metadata">

**Author:** [@sparkane](https://www.ruby-forum.com/u/sparkane)\
**Replies:** 3\
**Last updated:** [September 18, 2007, 12:00am UTC](https://www.ruby-forum.com/t/bypassing-normal-template-rendering/114795 "2007-09-18T00:00:09Z")

</div>

I have an app that let’s a user design a label and see a preview in realtime. The setup: The image is generated on a second machine, not the webserver. This second machine is not accessible from the internet, but on…

---

## [Rails skips model validation](https://www.ruby-forum.com/t/rails-skips-model-validation/114836)

<div class="topic-metadata">

**Author:** [@terry](https://www.ruby-forum.com/u/terry)\
**Replies:** 3\
**Last updated:** [September 17, 2007, 11:54pm UTC](https://www.ruby-forum.com/t/rails-skips-model-validation/114836 "2007-09-17T23:54:07Z")

</div>

for the life of me, i cannot get validates\_presence\_of to return any errors, leaving the form blank and clicking submit fails on the create or save method, but no validation errors are rendered. http://pastie.caboo.se…

---

## [:onclick function executing on page load](https://www.ruby-forum.com/t/onclick-function-executing-on-page-load/114816)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 2\
**Last updated:** [September 17, 2007, 11:34pm UTC](https://www.ruby-forum.com/t/onclick-function-executing-on-page-load/114816 "2007-09-17T23:34:24Z")

</div>

The following code in my rhtml file creates an ‘event’ object when the ‘accept agreement’ link is clicked, but also creates an ‘event’ object when the page loads. \<%= submit\_tag ‘Accept Agreement’, :onclick =\> Event.c…

---

## [Best way to do this?](https://www.ruby-forum.com/t/best-way-to-do-this/114835)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [September 17, 2007, 11:13pm UTC](https://www.ruby-forum.com/t/best-way-to-do-this/114835 "2007-09-17T23:13:00Z")

</div>

I am a newbie. I have a couple of pdf forms that are posted every 3 months with some changes. I want to fill in the text boxes on those pdf forms by using a rails application. So this is what I was thinking. I create …

---

## [Storting arbitrary objects in memory store](https://www.ruby-forum.com/t/storting-arbitrary-objects-in-memory-store/114830)

<div class="topic-metadata">

**Author:** [@weepy](https://www.ruby-forum.com/u/weepy)\
**Replies:** 0\
**Last updated:** [September 17, 2007, 9:52pm UTC](https://www.ruby-forum.com/t/storting-arbitrary-objects-in-memory-store/114830 "2007-09-17T21:52:36Z")

</div>

Hi I know that Memory Store is an option for storing sessions and cached views etc. Is it possible to store app wide arbitrary data in it ? If so - how so ?

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

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