# Rails

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

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

---

## [Problem with scaffold](https://www.ruby-forum.com/t/problem-with-scaffold/137010)

<div class="topic-metadata">

**Author:** [@Ashit\_V](https://www.ruby-forum.com/u/Ashit_V)\
**Replies:** 3\
**Last updated:** [December 16, 2008, 7:25am UTC](https://www.ruby-forum.com/t/problem-with-scaffold/137010 "2008-12-16T07:25:13Z")

</div>

Hello, 'm new to Rails… 'm using Agile Web D. with Rails as a reference book. I have a table named products and a model named product I used following code in a controller admin class AdminController \< ApplicationCo…

---

## [Fukuoka Ruby Award--about $10,000 for first prize](https://www.ruby-forum.com/t/fukuoka-ruby-award-about-10-000-for-first-prize/155719)

<div class="topic-metadata">

**Author:** [@fukuoka](https://www.ruby-forum.com/u/fukuoka)\
**Replies:** 3\
**Last updated:** [December 16, 2008, 5:18am UTC](https://www.ruby-forum.com/t/fukuoka-ruby-award-about-10-000-for-first-prize/155719 "2008-12-16T05:18:30Z")

</div>

I am working with the Government of Fukuoka, Japan to get the word out about the Fukuoka Ruby Award to Ruby developers in the US. It is free to apply for this award. The top prize is about $10,000. Deadline is Dece…

---

## [Calling an action within javascript function w/ ajax](https://www.ruby-forum.com/t/calling-an-action-within-javascript-function-w-ajax/155591)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 2\
**Last updated:** [December 16, 2008, 4:04am UTC](https://www.ruby-forum.com/t/calling-an-action-within-javascript-function-w-ajax/155591 "2008-12-16T04:04:52Z")

</div>

I am trying to call an action within a javscript function using ajax, but I am having some problems. I need the ajax call to return a value and am thinking I can do this using onComplete and Ajax.Request but I am run…

---

## [Query](https://www.ruby-forum.com/t/query/155730)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 0\
**Last updated:** [December 16, 2008, 3:52am UTC](https://www.ruby-forum.com/t/query/155730 "2008-12-16T03:52:01Z")

</div>

Hi… Actually i need to get User’s name Contact’s name and it’s department id and it’s Authority id and authority name. so i done following query. but its so long. I don’t know about join queries. so pls help me …

---

## [Remote\_function in IE with select input onchange](https://www.ruby-forum.com/t/remote-function-in-ie-with-select-input-onchange/155720)

<div class="topic-metadata">

**Author:** [@Nik\_B](https://www.ruby-forum.com/u/Nik_B)\
**Replies:** 1\
**Last updated:** [December 16, 2008, 3:50am UTC](https://www.ruby-forum.com/t/remote-function-in-ie-with-select-input-onchange/155720 "2008-12-16T03:50:15Z")

</div>

Here is the code: http://pastie.org/339967 Generated HTML: http://pastie.org/339969 This works great in Gecko and Webkit based browsers, but IE throws an error: “Object doesn’t support this property or method”. Any c…

---

## [Params error with: complex form+multiple models](https://www.ruby-forum.com/t/params-error-with-complex-form-multiple-models/155226)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 8\
**Last updated:** [December 16, 2008, 2:50am UTC](https://www.ruby-forum.com/t/params-error-with-complex-form-multiple-models/155226 "2008-12-16T02:50:07Z")

</div>

Hello, I’m trying to create a complex form with multiple models. The problem is that the params hash is sent out of order to the controller, and the data is saved wrong in the database. What I get is: Parameters: {“…

---

## [Modify Session Data using session\_id](https://www.ruby-forum.com/t/modify-session-data-using-session-id/155664)

<div class="topic-metadata">

**Author:** [@renian](https://www.ruby-forum.com/u/renian)\
**Replies:** 3\
**Last updated:** [December 16, 2008, 2:08am UTC](https://www.ruby-forum.com/t/modify-session-data-using-session-id/155664 "2008-12-16T02:08:14Z")

</div>

Hi, first post here. I’m enjoying getting to know rails. I have been scratching my head trying to find a way to modify data in a session by directly accessing CGI::Session. I should note, using the following code, I…

---

## [Linking in SSL page to non SSL](https://www.ruby-forum.com/t/linking-in-ssl-page-to-non-ssl/155696)

<div class="topic-metadata">

**Author:** [@Nik\_B](https://www.ruby-forum.com/u/Nik_B)\
**Replies:** 3\
**Last updated:** [December 15, 2008, 10:20pm UTC](https://www.ruby-forum.com/t/linking-in-ssl-page-to-non-ssl/155696 "2008-12-15T22:20:49Z")

</div>

I have a situation where I am generating links in an SSL secured area (no subdomain) to a non SSL page (with a subdomain). The certificate doesn’t cover subdomains, so everytime someone clicks on the link to a https:/…

---

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

<div class="topic-metadata">

**Author:** [@mpathare](https://www.ruby-forum.com/u/mpathare)\
**Replies:** 1\
**Last updated:** [December 15, 2008, 9:19pm UTC](https://www.ruby-forum.com/t/form-for/155704 "2008-12-15T21:19:12Z")

</div>

I have two models, ladder and statistic The relationship is ladder has\_many statistics statistic belongs\_to ladder In a view for my ladder controller action show, I am redirecting the user to an action in my statist…

---

## [Export file to csv Rails 0.14.1](https://www.ruby-forum.com/t/export-file-to-csv-rails-0-14-1/155709)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 15, 2008, 8:32pm UTC](https://www.ruby-forum.com/t/export-file-to-csv-rails-0-14-1/155709 "2008-12-15T20:32:49Z")

</div>

Hello, I am trying to figure out how to export to a csv. I have found lots on how to do this in later versions of Rails but I unfortunately I must use this version of rails. Anyone know of a good tutorial on how to…

---

## [Insecure: can't modify hash](https://www.ruby-forum.com/t/insecure-cant-modify-hash/155710)

<div class="topic-metadata">

**Author:** [@gremio](https://www.ruby-forum.com/u/gremio)\
**Replies:** 0\
**Last updated:** [December 15, 2008, 8:31pm UTC](https://www.ruby-forum.com/t/insecure-cant-modify-hash/155710 "2008-12-15T20:31:28Z")

</div>

A weird problem occurs (only on the prod server, not locally), when i try to register a new user with restful\_authentication. Once in a while, i get the following error when trying to sign up as a new user: Insecure:…

---

## [Doubts in running a sample web application](https://www.ruby-forum.com/t/doubts-in-running-a-sample-web-application/155645)

<div class="topic-metadata">

**Author:** [@angaps](https://www.ruby-forum.com/u/angaps)\
**Replies:** 4\
**Last updated:** [December 15, 2008, 7:48pm UTC](https://www.ruby-forum.com/t/doubts-in-running-a-sample-web-application/155645 "2008-12-15T19:48:32Z")

</div>

Hai Iam newbie. Iam using ruby on rails, I have some doubts in it. The steps i followed is Using ruby 1.8.6 rails 2.2.2 http://www.ibm.com/developerworks/linux/library/l-rubyrails/ created the rails project name …

---

## [Calling a partial from within a model / model's method?](https://www.ruby-forum.com/t/calling-a-partial-from-within-a-model-models-method/153966)

<div class="topic-metadata">

**Author:** [@Joel\_O](https://www.ruby-forum.com/u/Joel_O)\
**Replies:** 5\
**Last updated:** [December 15, 2008, 7:16pm UTC](https://www.ruby-forum.com/t/calling-a-partial-from-within-a-model-models-method/153966 "2008-12-15T19:16:27Z")

</div>

Hey everyone, I have a model I extended w/STI to allow me to write little widgets or modules for my web-app … that part’s working well. However, I’m getting to the point where, depending on the model’s type/class I…

---

## [HTML in db columns](https://www.ruby-forum.com/t/html-in-db-columns/155589)

<div class="topic-metadata">

**Author:** [@Don\_F](https://www.ruby-forum.com/u/Don_F)\
**Replies:** 4\
**Last updated:** [December 15, 2008, 6:40pm UTC](https://www.ruby-forum.com/t/html-in-db-columns/155589 "2008-12-15T18:40:52Z")

</div>

I have some text columns where I would like many of the html commands available. I can insert tags in the field with no problem and it stays there. When I try to use the data like \<%= @item.description %\> I loose seve…

---

## [Third Party Tool for Business Directories?](https://www.ruby-forum.com/t/third-party-tool-for-business-directories/155698)

<div class="topic-metadata">

**Author:** [@JimCifarelli](https://www.ruby-forum.com/u/JimCifarelli)\
**Replies:** 0\
**Last updated:** [December 15, 2008, 6:35pm UTC](https://www.ruby-forum.com/t/third-party-tool-for-business-directories/155698 "2008-12-15T18:35:52Z")

</div>

Hello again Rails Community, I’d like to add a subscription based “Business Services Directory” to a Rails app so that other businesses can advertise under a “category”. This site currently uses third party tools in m…

---

## [ActiveRecord Oracle and nvarchar2 or nclob datatype](https://www.ruby-forum.com/t/activerecord-oracle-and-nvarchar2-or-nclob-datatype/154945)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [December 15, 2008, 6:02pm UTC](https://www.ruby-forum.com/t/activerecord-oracle-and-nvarchar2-or-nclob-datatype/154945 "2008-12-15T18:02:26Z")

</div>

Hi, I ve got oracle database which exists prior to my rails app… :frowning: I ve got trouble when I am updating/inserting records of a table which includes nvarchar2 attributes. These have a specific maximum length. …

---

## [Multiple Models, one form, has\_many AND has\_one not workink](https://www.ruby-forum.com/t/multiple-models-one-form-has-many-and-has-one-not-workink/155695)

<div class="topic-metadata">

**Author:** [@zbo09](https://www.ruby-forum.com/u/zbo09)\
**Replies:** 0\
**Last updated:** [December 15, 2008, 5:09pm UTC](https://www.ruby-forum.com/t/multiple-models-one-form-has-many-and-has-one-not-workink/155695 "2008-12-15T17:09:34Z")

</div>

I have a model (Employee) which has a has\_many association with (FlatMate). A flat mate also has a has\_one association (PrimaryAddress). Now when I try to create a form and then submit it I receive the 500 expected ha…

---

## [RoR survey (research of the Utrecht University)](https://www.ruby-forum.com/t/ror-survey-research-of-the-utrecht-university/155691)

<div class="topic-metadata">

**Author:** [@Maarten](https://www.ruby-forum.com/u/Maarten)\
**Replies:** 0\
**Last updated:** [December 15, 2008, 4:59pm UTC](https://www.ruby-forum.com/t/ror-survey-research-of-the-utrecht-university/155691 "2008-12-15T16:59:36Z")

</div>

Dear Rails developers, On behalf of the Utrecht University (in the Netherlands) I would like to invite you to complete a survey on your perception of the Ruby on Rails framework. The goal of this research is to design…

---

## [User + author in one model or not](https://www.ruby-forum.com/t/user-author-in-one-model-or-not/155674)

<div class="topic-metadata">

**Author:** [@golf](https://www.ruby-forum.com/u/golf)\
**Replies:** 3\
**Last updated:** [December 15, 2008, 4:44pm UTC](https://www.ruby-forum.com/t/user-author-in-one-model-or-not/155674 "2008-12-15T16:44:00Z")

</div>

Hi everybody, I am building some kind of social networking web. I have implemented user registration and now I would like to add another type of registration (authors). I dont know whether to keep the registration si…

---

## [Doozy of a pagination problem](https://www.ruby-forum.com/t/doozy-of-a-pagination-problem/155684)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 0\
**Last updated:** [December 15, 2008, 4:19pm UTC](https://www.ruby-forum.com/t/doozy-of-a-pagination-problem/155684 "2008-12-15T16:19:11Z")

</div>

Hey, This is sort of complicated, and I’m trying to keep it as simple as I can. I’m using will\_paginate to display only 25 snapshots on each page. My question is how can I return only the most recent snapshot per li…

---

## [Link\_to and routing question](https://www.ruby-forum.com/t/link-to-and-routing-question/155636)

<div class="topic-metadata">

**Author:** [@hangingclowns](https://www.ruby-forum.com/u/hangingclowns)\
**Replies:** 3\
**Last updated:** [December 15, 2008, 4:04pm UTC](https://www.ruby-forum.com/t/link-to-and-routing-question/155636 "2008-12-15T16:04:09Z")

</div>

I have the following link\_to: \<%= link\_to(“Remove”, {:action =\> “remove\_role\_from\_account”, :role\_id =\> role, :account\_id =\> @account}) %\> It generates: http://myserver.com/roles/remove\_role\_from\_account?account\_id=1&…

---

## [Problems with session store and local host](https://www.ruby-forum.com/t/problems-with-session-store-and-local-host/155507)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 4\
**Last updated:** [December 15, 2008, 4:00pm UTC](https://www.ruby-forum.com/t/problems-with-session-store-and-local-host/155507 "2008-12-15T16:00:00Z")

</div>

Rails 2.2.2 Ruby 1.8.6 I am developing an application that uses a gem for authentication. When I try and add a new user then the rails code within the gem enters an infinite loop. The author is working on this issue…

---

## [Object to hash](https://www.ruby-forum.com/t/object-to-hash/131133)

<div class="topic-metadata">

**Author:** [@daniel304](https://www.ruby-forum.com/u/daniel304)\
**Replies:** 2\
**Last updated:** [December 15, 2008, 3:21pm UTC](https://www.ruby-forum.com/t/object-to-hash/131133 "2008-12-15T15:21:04Z")

</div>

I am working with rails 2.0.2 and ActiveResource I have an object @person and I need to save it locally and send the same object with Active Resource to a Restfull server… My solution to this is to define a @person.n…

---

## [Finddef - find methods in textmate](https://www.ruby-forum.com/t/finddef-find-methods-in-textmate/155624)

<div class="topic-metadata">

**Author:** [@jzimmek](https://www.ruby-forum.com/u/jzimmek)\
**Replies:** 2\
**Last updated:** [December 15, 2008, 3:00pm UTC](https://www.ruby-forum.com/t/finddef-find-methods-in-textmate/155624 "2008-12-15T15:00:02Z")

</div>

i you have an java/eclipse background like me and missing a “show declaration of method” in textmate, then you should checkout finddef. finddef is a textmate command to quickly find method definitions over multiple so…

---

## [\*Looking for new clients on Software and Web Development / websites](https://www.ruby-forum.com/t/looking-for-new-clients-on-software-and-web-development-websites/155670)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 15, 2008, 2:16pm UTC](https://www.ruby-forum.com/t/looking-for-new-clients-on-software-and-web-development-websites/155670 "2008-12-15T14:16:32Z")

</div>

\*Looking for new clients on Software and Web D. / websites related projects – we perform it at reasonable price. Helloo!, thanks for stopping by me my name is Aaron and About my business (HYVA IT Solutions) Founded in…

---

## [Different views for a single model?](https://www.ruby-forum.com/t/different-views-for-a-single-model/155422)

<div class="topic-metadata">

**Author:** [@Bill\_V](https://www.ruby-forum.com/u/Bill_V)\
**Replies:** 3\
**Last updated:** [December 15, 2008, 1:24pm UTC](https://www.ruby-forum.com/t/different-views-for-a-single-model/155422 "2008-12-15T13:24:12Z")

</div>

How could you do it, in a RESTful way? I have a very simple model with 2 attrs and each view is a Model.find\_all\_by\_attr1 and \_attr2. How is this modeled in REST? I’ve been in rails for 6 months now and REST is conti…

---

## [Application failing on undefined method \`install\_gem\_spec\_st](https://www.ruby-forum.com/t/application-failing-on-undefined-method-install-gem-spec-st/155641)

<div class="topic-metadata">

**Author:** [@capslock118](https://www.ruby-forum.com/u/capslock118)\
**Replies:** 3\
**Last updated:** [December 15, 2008, 1:09pm UTC](https://www.ruby-forum.com/t/application-failing-on-undefined-method-install-gem-spec-st/155641 "2008-12-15T13:09:31Z")

</div>

Hi there, I have rails 2.0.2 installed on my development server and that is where I created this app. I froze the app to 2.0.2 knowing that my host server uses 2.2.2 and that version breaks my application. But when I…

---

## [Why is wrong with this code - the model "save!" method does not seem to give a correct response back](https://www.ruby-forum.com/t/why-is-wrong-with-this-code-the-model-save-method-does-not-seem-to-give-a-correct-response-back/155481)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 9\
**Last updated:** [December 15, 2008, 1:01pm UTC](https://www.ruby-forum.com/t/why-is-wrong-with-this-code-the-model-save-method-does-not-seem-to-give-a-correct-response-back/155481 "2008-12-15T13:01:21Z")

</div>

Hi, I have a model for which when I go to save an item it doesn’t seem to get saved. In the console I don’t get a “record not saved” error??? But rather the response seems to give me back a Transaction object (i.e…

---

## [Routing Problem please help](https://www.ruby-forum.com/t/routing-problem-please-help/155655)

<div class="topic-metadata">

**Author:** [@sameera](https://www.ruby-forum.com/u/sameera)\
**Replies:** 2\
**Last updated:** [December 15, 2008, 11:51am UTC](https://www.ruby-forum.com/t/routing-problem-please-help/155655 "2008-12-15T11:51:07Z")

</div>

Hi all, I’m creating a REST API for one of my projects and I’m stuck in a routing issue. I have a resource called mobileowner (which will send the user xml when given the mobile no) And my controller is in the follo…

---

## [Asset timestamping and images referred in CSS](https://www.ruby-forum.com/t/asset-timestamping-and-images-referred-in-css/155657)

<div class="topic-metadata">

**Author:** [@qertoip](https://www.ruby-forum.com/u/qertoip)\
**Replies:** 0\
**Last updated:** [December 15, 2008, 11:27am UTC](https://www.ruby-forum.com/t/asset-timestamping-and-images-referred-in-css/155657 "2008-12-15T11:27:37Z")

</div>

Rails appends ?mtime to asset paths, which is nice. But how to coupe with images referred in css? Example: background-image: url(…/images/bg.gif); Idea? Plugin? Regards, Piotr WÅ‚odarek

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

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