# Rails

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

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

---

## [Out of office: \[Rails-deploy\] Re: !st deployment. Rails version problems?](https://www.ruby-forum.com/t/out-of-office-rails-deploy-re-st-deployment-rails-version-problems/197321)

<div class="topic-metadata">

**Author:** [@Backpack](https://www.ruby-forum.com/u/Backpack)\
**Replies:** 0\
**Last updated:** [July 24, 2008, 7:30pm UTC](https://www.ruby-forum.com/t/out-of-office-rails-deploy-re-st-deployment-rails-version-problems/197321 "2008-07-24T19:30:47Z")

</div>

I’m out of the office from 25th July, returning on 11th August. For urgent queries, please contact Dave Clack, Simon Jones, or John Cooke at Black Pepper Software. Their email addresses are in the same format as my ow…

---

## [rSpec for testing plugins?](https://www.ruby-forum.com/t/rspec-for-testing-plugins/143967)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 2\
**Last updated:** [July 24, 2008, 7:06pm UTC](https://www.ruby-forum.com/t/rspec-for-testing-plugins/143967 "2008-07-24T19:06:45Z")

</div>

Hello, Just starting Rails plugin development and I was wondering if I can use rSpec to test it? Or am I stuck with Test::Unit? Thanks, Marcelo.

---

## [Having troubles extracting json data within javascript](https://www.ruby-forum.com/t/having-troubles-extracting-json-data-within-javascript/143957)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 3\
**Last updated:** [July 24, 2008, 7:05pm UTC](https://www.ruby-forum.com/t/having-troubles-extracting-json-data-within-javascript/143957 "2008-07-24T19:05:18Z")

</div>

I am having some difficulty extracting json data from a returned hash table. From the geocode data that is returned the following console.log(data) console.log(data\[“latitude”\]) Results in: {“latitude”: “55.272766”…

---

## [Validation method vs. After Save & Rollback](https://www.ruby-forum.com/t/validation-method-vs-after-save-rollback/143832)

<div class="topic-metadata">

**Author:** [@validkeys](https://www.ruby-forum.com/u/validkeys)\
**Replies:** 3\
**Last updated:** [July 24, 2008, 7:04pm UTC](https://www.ruby-forum.com/t/validation-method-vs-after-save-rollback/143832 "2008-07-24T19:04:59Z")

</div>

Hey Guys, Again, I am just learning Rails, so I am asking advice here. I have a model called Company which has many Owners. The Owners model indicates the name of the owner and their share (as a percentage) of the co…

---

## [Designing a user system: Groups or STI?](https://www.ruby-forum.com/t/designing-a-user-system-groups-or-sti/143445)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 3\
**Last updated:** [July 24, 2008, 7:00pm UTC](https://www.ruby-forum.com/t/designing-a-user-system-groups-or-sti/143445 "2008-07-24T19:00:52Z")

</div>

Hello list, This is more of a architectural question and I hope someone out there could enlighten me. I’m starting the object model of my current project, and I can see that there will be various kinds of users, suc…

---

## [Out of office: \[Rails-deploy\] Out of office: \[Rails-deploy\] Out of office: \[Rails-deploy\] Out of off](https://www.ruby-forum.com/t/out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-off/144026)

<div class="topic-metadata">

**Author:** [@chrislo](https://www.ruby-forum.com/u/chrislo)\
**Replies:** 0\
**Last updated:** [July 24, 2008, 6:59pm UTC](https://www.ruby-forum.com/t/out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-off/144026 "2008-07-24T18:59:42Z")

</div>

\[Rails-deploy\] Re: A bit of ajax works fine locally but breaks on nginx Reply-To: removed\_email\_address@domain.invalid Sender: removed\_email\_address@domain.invalid Precedence: bulk X-Google-Loop: groups Mail…

---

## [Out of office: \[Rails-deploy\] Out of office: \[Rails-deploy\] Out of office: \[Rails-deploy\] Out of off](https://www.ruby-forum.com/t/out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-off/197284)

<div class="topic-metadata">

**Author:** [@chrislo](https://www.ruby-forum.com/u/chrislo)\
**Replies:** 0\
**Last updated:** [July 24, 2008, 6:59pm UTC](https://www.ruby-forum.com/t/out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-off/197284 "2008-07-24T18:59:42Z")

</div>

I’m out of the office from 25th July, returning on 11th August. For urgent queries, please contact Dave Clack, Simon Jones, or John Cooke at Black Pepper Software. Their email addresses are in the same format as my ow…

---

## [Out of office: \[Rails-deploy\] Out of office: \[Rails-deploy\] Out of office: \[Rails-deploy\] Out of off](https://www.ruby-forum.com/t/out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-off/197082)

<div class="topic-metadata">

**Author:** [@chrislo](https://www.ruby-forum.com/u/chrislo)\
**Replies:** 0\
**Last updated:** [July 24, 2008, 6:59pm UTC](https://www.ruby-forum.com/t/out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-off/197082 "2008-07-24T18:59:07Z")

</div>

I’m out of the office from 25th July, returning on 11th August. For urgent queries, please contact Dave Clack, Simon Jones, or John Cooke at Black Pepper Software. Their email addresses are in the same format as my ow…

---

## [Out of office: \[Rails-deploy\] Out of office: \[Rails-deploy\] Out of office: \[Rails-deploy\] Out of off](https://www.ruby-forum.com/t/out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-off/197251)

<div class="topic-metadata">

**Author:** [@chrislo](https://www.ruby-forum.com/u/chrislo)\
**Replies:** 0\
**Last updated:** [July 24, 2008, 6:59pm UTC](https://www.ruby-forum.com/t/out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-off/197251 "2008-07-24T18:59:07Z")

</div>

I’m out of the office from 25th July, returning on 11th August. For urgent queries, please contact Dave Clack, Simon Jones, or John Cooke at Black Pepper Software. Their email addresses are in the same format as my ow…

---

## [Out of office: \[Rails-deploy\] Out of office: \[Rails-deploy\] Out of office: \[Rails-deploy\] Out of off](https://www.ruby-forum.com/t/out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-off/197178)

<div class="topic-metadata">

**Author:** [@chrislo](https://www.ruby-forum.com/u/chrislo)\
**Replies:** 0\
**Last updated:** [July 24, 2008, 6:58pm UTC](https://www.ruby-forum.com/t/out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-off/197178 "2008-07-24T18:58:32Z")

</div>

I’m out of the office from 25th July, returning on 11th August. For urgent queries, please contact Dave Clack, Simon Jones, or John Cooke at Black Pepper Software. Their email addresses are in the same format as my ow…

---

## [Out of office: \[Rails-deploy\] Out of office: \[Rails-deploy\] Out of office: \[Rails-deploy\] Re: A bit](https://www.ruby-forum.com/t/out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-office-rails-deploy-re-a-bit/197218)

<div class="topic-metadata">

**Author:** [@chrislo](https://www.ruby-forum.com/u/chrislo)\
**Replies:** 0\
**Last updated:** [July 24, 2008, 6:58pm UTC](https://www.ruby-forum.com/t/out-of-office-rails-deploy-out-of-office-rails-deploy-out-of-office-rails-deploy-re-a-bit/197218 "2008-07-24T18:58:32Z")

</div>

I’m out of the office from 25th July, returning on 11th August. For urgent queries, please contact Dave Clack, Simon Jones, or John Cooke at Black Pepper Software. Their email addresses are in the same format as my ow…

---

## [Out of office: \[Rails-deploy\] Re: A bit of ajax works fine locally but breaks on nginx](https://www.ruby-forum.com/t/out-of-office-rails-deploy-re-a-bit-of-ajax-works-fine-locally-but-breaks-on-nginx/144025)

<div class="topic-metadata">

**Author:** [@chrislo](https://www.ruby-forum.com/u/chrislo)\
**Replies:** 0\
**Last updated:** [July 24, 2008, 6:57pm UTC](https://www.ruby-forum.com/t/out-of-office-rails-deploy-re-a-bit-of-ajax-works-fine-locally-but-breaks-on-nginx/144025 "2008-07-24T18:57:56Z")

</div>

I’m out of the office from 25th July, returning on 11th August. For urgent queries, please contact Dave Clack, Simon Jones, or John Cooke at Black Pepper Software. Their email addresses are in the same format as my ow…

---

## [Out of office: \[Rails-deploy\] Out of office: \[Rails-deploy\] Re: A bit of ajax works fine locally but](https://www.ruby-forum.com/t/out-of-office-rails-deploy-out-of-office-rails-deploy-re-a-bit-of-ajax-works-fine-locally-but/196755)

<div class="topic-metadata">

**Author:** [@chrislo](https://www.ruby-forum.com/u/chrislo)\
**Replies:** 0\
**Last updated:** [July 24, 2008, 6:57pm UTC](https://www.ruby-forum.com/t/out-of-office-rails-deploy-out-of-office-rails-deploy-re-a-bit-of-ajax-works-fine-locally-but/196755 "2008-07-24T18:57:56Z")

</div>

I’m out of the office from 25th July, returning on 11th August. For urgent queries, please contact Dave Clack, Simon Jones, or John Cooke at Black Pepper Software. Their email addresses are in the same format as my ow…

---

## [How to add link\_to\_remote element with RJS?](https://www.ruby-forum.com/t/how-to-add-link-to-remote-element-with-rjs/143981)

<div class="topic-metadata">

**Author:** [@eyp](https://www.ruby-forum.com/u/eyp)\
**Replies:** 2\
**Last updated:** [July 24, 2008, 6:39pm UTC](https://www.ruby-forum.com/t/how-to-add-link-to-remote-element-with-rjs/143981 "2008-07-24T18:39:37Z")

</div>

Hello, after executing an action, I add an element to an existing list using a RJS template: page.insert\_html :bottom, :contributors, “#{@contributor.user.name} ” but I need to add an image with a link\_to\_remote as …

---

## [Search according to drop-down list](https://www.ruby-forum.com/t/search-according-to-drop-down-list/144021)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 0\
**Last updated:** [July 24, 2008, 6:36pm UTC](https://www.ruby-forum.com/t/search-according-to-drop-down-list/144021 "2008-07-24T18:36:05Z")

</div>

Hi, currently I have two separate search fields. One searches the paginated model and the other searches a user model: \<% form\_for :post, :method =\> ‘get’ do %\> \<%= collection\_select(:post, :id, @posts, :id, :title, o…

---

## [Looking for a ROR Partner](https://www.ruby-forum.com/t/looking-for-a-ror-partner/143946)

<div class="topic-metadata">

**Author:** [@daBigNY](https://www.ruby-forum.com/u/daBigNY)\
**Replies:** 2\
**Last updated:** [July 24, 2008, 5:55pm UTC](https://www.ruby-forum.com/t/looking-for-a-ror-partner/143946 "2008-07-24T17:55:12Z")

</div>

I’m in the process of building a niche social networking app and I would like to have a partner who is stronger with Ruby on Rails than I am. I’m a designer and I have been learning Ruby on the side but this project w…

---

## [Possible Rails 2.1.0 issue using the Object's send method](https://www.ruby-forum.com/t/possible-rails-2-1-0-issue-using-the-objects-send-method/140743)

<div class="topic-metadata">

**Author:** [@jfoxny](https://www.ruby-forum.com/u/jfoxny)\
**Replies:** 5\
**Last updated:** [July 24, 2008, 5:21pm UTC](https://www.ruby-forum.com/t/possible-rails-2-1-0-issue-using-the-objects-send-method/140743 "2008-07-24T17:21:19Z")

</div>

Code like the following worked fine under Rails 2.0.2 but now throws an exception under Rails 2.1.0. Has anyone else had this issue? class BugTest \< ActiveRecord::Base def set\_name(value) send(“name=”, value) end …

---

## [Ruby issue : mixing Hash and Array](https://www.ruby-forum.com/t/ruby-issue-mixing-hash-and-array/144004)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 1\
**Last updated:** [July 24, 2008, 5:21pm UTC](https://www.ruby-forum.com/t/ruby-issue-mixing-hash-and-array/144004 "2008-07-24T17:21:19Z")

</div>

I have been trying to set up an hash without any success :: here is what I tested (I splitted it to detail my understanding or error…) h = {“2008” =\> \[\]} =\> {“2008”=\>\[\]} months = Array.new(12, \[\]) =\> \[\[\], \[\],…

---

## [model.sum(:colï¼Œ:group=\>'col1,col2') only return 2 columns?](https://www.ruby-forum.com/t/model-sum-coli-oe-group-col1-col2-only-return-2-columns/144011)

<div class="topic-metadata">

**Author:** [@phoenix520](https://www.ruby-forum.com/u/phoenix520)\
**Replies:** 0\
**Last updated:** [July 24, 2008, 5:13pm UTC](https://www.ruby-forum.com/t/model-sum-coli-oe-group-col1-col2-only-return-2-columns/144011 "2008-07-24T17:13:26Z")

</div>

There are 3 columns in my model ‘Bank’:bank\_name,money,save\_year,and I want to get the sum money group by bank\_name and save\_year. However,Bank.sum(:money,:group=\>‘bank\_name,save\_year’) just returns the sum money and …

---

## [Observer and uninitialized constant](https://www.ruby-forum.com/t/observer-and-uninitialized-constant/144013)

<div class="topic-metadata">

**Author:** [@netimpulse](https://www.ruby-forum.com/u/netimpulse)\
**Replies:** 0\
**Last updated:** [July 24, 2008, 5:01pm UTC](https://www.ruby-forum.com/t/observer-and-uninitialized-constant/144013 "2008-07-24T17:01:44Z")

</div>

Hello, I have an application running on rails 1.2.3 I use act\_as\_authenticated and i want to add an observer on the users table. my environment.rb file : config.active\_record.observers = :user\_observer I have creat…

---

## [How to drag and drop Images into Textbox?](https://www.ruby-forum.com/t/how-to-drag-and-drop-images-into-textbox/144008)

<div class="topic-metadata">

**Author:** [@ror\_arch](https://www.ruby-forum.com/u/ror_arch)\
**Replies:** 0\
**Last updated:** [July 24, 2008, 4:36pm UTC](https://www.ruby-forum.com/t/how-to-drag-and-drop-images-into-textbox/144008 "2008-07-24T16:36:17Z")

</div>

Is there a way of dragging and dropping images or copying and pasting images into the text box (rich text box) ? Has anyone implemented something similar? What is the easiest way of implementing such embedding / uploa…

---

## [Read the pdf](https://www.ruby-forum.com/t/read-the-pdf/143993)

<div class="topic-metadata">

**Author:** [@sujith](https://www.ruby-forum.com/u/sujith)\
**Replies:** 1\
**Last updated:** [July 24, 2008, 4:20pm UTC](https://www.ruby-forum.com/t/read-the-pdf/143993 "2008-07-24T16:20:54Z")

</div>

I’d like to load a PDF file into a page, in my controller: send\_file “/path to/my.pdf”, :disposition =\> “inline” However, instead of rendering inline, it asks to download the file. How can I display the contents witho…

---

## [View changes not appearing (have to restart server to see them)](https://www.ruby-forum.com/t/view-changes-not-appearing-have-to-restart-server-to-see-them/143353)

<div class="topic-metadata">

**Author:** [@DEfusion](https://www.ruby-forum.com/u/DEfusion)\
**Replies:** 4\
**Last updated:** [July 24, 2008, 4:09pm UTC](https://www.ruby-forum.com/t/view-changes-not-appearing-have-to-restart-server-to-see-them/143353 "2008-07-24T16:09:45Z")

</div>

My setup is as follows: Codebase on local machine (OS X), shared using samba. Application environment (ruby, gems, mysql etc.) within a Ubuntu Server install running inside a Parallels VM. The problem is whenever I m…

---

## [FasterCSV: Two quick, simple, painless questions](https://www.ruby-forum.com/t/fastercsv-two-quick-simple-painless-questions/143446)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 4\
**Last updated:** [July 24, 2008, 3:27pm UTC](https://www.ruby-forum.com/t/fastercsv-two-quick-simple-painless-questions/143446 "2008-07-24T15:27:21Z")

</div>

Hi, how is everybody doing? How do I make sure that the file that is being uploaded is a CSV file, and not another kind of file? Sometimes, when I’m parsing through the CSV file, it tries to read the row after th…

---

## [Weekly logins](https://www.ruby-forum.com/t/weekly-logins/143998)

<div class="topic-metadata">

**Author:** [@srinathbtech](https://www.ruby-forum.com/u/srinathbtech)\
**Replies:** 0\
**Last updated:** [July 24, 2008, 3:17pm UTC](https://www.ruby-forum.com/t/weekly-logins/143998 "2008-07-24T15:17:59Z")

</div>

Hi all, how to retrieve Number of logins during the week. This is the number of times users have logged in last week. Say in June 08 if i want the results i should be able retrieve as weekly\_logins = \[‘june 1 2008 10…

---

## [Excerpting a summary from my marked-up blog post without breaking html tags?](https://www.ruby-forum.com/t/excerpting-a-summary-from-my-marked-up-blog-post-without-breaking-html-tags/143956)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [July 24, 2008, 3:00pm UTC](https://www.ruby-forum.com/t/excerpting-a-summary-from-my-marked-up-blog-post-without-breaking-html-tags/143956 "2008-07-24T15:00:59Z")

</div>

Hi there, I’m working on a simple blog project. I’d like to automatically generate a 100 word excerpt of each article to display on the main page, and require the user to click on the article to read the whole thing…

---

## [An Index of Frequently Asked Questions](https://www.ruby-forum.com/t/an-index-of-frequently-asked-questions/143837)

<div class="topic-metadata">

**Author:** [@ror\_arch](https://www.ruby-forum.com/u/ror_arch)\
**Replies:** 8\
**Last updated:** [July 24, 2008, 2:18pm UTC](https://www.ruby-forum.com/t/an-index-of-frequently-asked-questions/143837 "2008-07-24T14:18:50Z")

</div>

Is there a way of mining the forums and figuring out an index of the top 10 or 20 frequently asked technical questions on ROR ?

---

## [Harvest error\_messages\_for to use on redirect?](https://www.ruby-forum.com/t/harvest-error-messages-for-to-use-on-redirect/143990)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 0\
**Last updated:** [July 24, 2008, 1:51pm UTC](https://www.ruby-forum.com/t/harvest-error-messages-for-to-use-on-redirect/143990 "2008-07-24T13:51:48Z")

</div>

Hi- I’ve seen this posted a bunch of times but haven’t found an answer. I want to have multiple forms/pages map to one controller so I don’t have to duplicate my controller logic, then, render the sending pages. To…

---

## [Form\_for](https://www.ruby-forum.com/t/form-for/143932)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 2\
**Last updated:** [July 24, 2008, 1:04pm UTC](https://www.ruby-forum.com/t/form-for/143932 "2008-07-24T13:04:52Z")

</div>

\<% form\_for :post, :url =\> { :action =\> :save\_requirement } do |form| Requirement Title:\<%= form.text\_field :title, :value =\> params\[:title\] \<%= form.submit “Add requirement” %\> This is just a part of my form…

---

## [Vies word document as html format in ruby on rails](https://www.ruby-forum.com/t/vies-word-document-as-html-format-in-ruby-on-rails/143978)

<div class="topic-metadata">

**Author:** [@sujith](https://www.ruby-forum.com/u/sujith)\
**Replies:** 0\
**Last updated:** [July 24, 2008, 10:56am UTC](https://www.ruby-forum.com/t/vies-word-document-as-html-format-in-ruby-on-rails/143978 "2008-07-24T10:56:32Z")

</div>

i uploaded one word document and it saved in public folder now i want to view that word document in html format using ruby on rails

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

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