# Rails

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

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

---

## [What's the right adapter to use for SQL Server?](https://www.ruby-forum.com/t/whats-the-right-adapter-to-use-for-sql-server/187735)

<div class="topic-metadata">

**Author:** [@nlsmith](https://www.ruby-forum.com/u/nlsmith)\
**Replies:** 3\
**Last updated:** [April 28, 2010, 11:32pm UTC](https://www.ruby-forum.com/t/whats-the-right-adapter-to-use-for-sql-server/187735 "2010-04-28T23:32:49Z")

</div>

I am porting a Rails app that is made up of 2 rails projects to SQL Server. The app already runs with MySQL and Oracle. One Rails project is the UI with a database that contains user/project specific data. The second …

---

## [Ruby Openings at Oakley](https://www.ruby-forum.com/t/ruby-openings-at-oakley/187765)

<div class="topic-metadata">

**Author:** [@Oakley\_Scott](https://www.ruby-forum.com/u/Oakley_Scott)\
**Replies:** 0\
**Last updated:** [April 28, 2010, 11:19pm UTC](https://www.ruby-forum.com/t/ruby-openings-at-oakley/187765 "2010-04-28T23:19:03Z")

</div>

Hi Everyone! I’m looking for a Software Engineer, Web Architech & Front End Web Developer to join the team at Oakley. We would prefer all of our candidates to have experience with Ruby on Rails. These positions are …

---

## [Adding image using html into a view file](https://www.ruby-forum.com/t/adding-image-using-html-into-a-view-file/187751)

<div class="topic-metadata">

**Author:** [@woodsy0130](https://www.ruby-forum.com/u/woodsy0130)\
**Replies:** 1\
**Last updated:** [April 28, 2010, 11:04pm UTC](https://www.ruby-forum.com/t/adding-image-using-html-into-a-view-file/187751 "2010-04-28T23:04:59Z")

</div>

Hello, I have built a simple application using scaffolding and i have added a background image to my index pages of each model. This is using CSS and i have the background image in the image folder within the rails a…

---

## [RESTful style: multiple plot styles, query strings](https://www.ruby-forum.com/t/restful-style-multiple-plot-styles-query-strings/187638)

<div class="topic-metadata">

**Author:** [@fearless\_fool](https://www.ruby-forum.com/u/fearless_fool)\
**Replies:** 9\
**Last updated:** [April 28, 2010, 8:46pm UTC](https://www.ruby-forum.com/t/restful-style-multiple-plot-styles-query-strings/187638 "2010-04-28T20:46:35Z")

</div>

In my quest to practice good style, I’m a bit stumped on the following. Assume an app that lets a user visualize recent web activity on various domains (“user has many domains”). In ordinary RESTful style, the path /…

---

## [\[Rails 3\] Failed to get session options](https://www.ruby-forum.com/t/rails-3-failed-to-get-session-options/187752)

<div class="topic-metadata">

**Author:** [@S\_obj](https://www.ruby-forum.com/u/S_obj)\
**Replies:** 0\
**Last updated:** [April 28, 2010, 8:32pm UTC](https://www.ruby-forum.com/t/rails-3-failed-to-get-session-options/187752 "2010-04-28T20:32:11Z")

</div>

Hi everybody, I’m trying to switch the session store in Rails 3 by changing the config/application.rb as following: config/application.rb #----------------------------------- memcache\_options = { :compression =\> tr…

---

## [Trying to get Rails working with Sybase ASE](https://www.ruby-forum.com/t/trying-to-get-rails-working-with-sybase-ase/187734)

<div class="topic-metadata">

**Author:** [@Rolf\_P](https://www.ruby-forum.com/u/Rolf_P)\
**Replies:** 1\
**Last updated:** [April 28, 2010, 7:44pm UTC](https://www.ruby-forum.com/t/trying-to-get-rails-working-with-sybase-ase/187734 "2010-04-28T19:44:46Z")

</div>

Hi I’m trying to use the activerecord-sybase-adapter to be able to use ASE with my rails applications. But, I am struggling… I followed (most of) the steps on this informative page: http://trevoke.net/blog/2009/09/…

---

## [Simple search](https://www.ruby-forum.com/t/simple-search/187741)

<div class="topic-metadata">

**Author:** [@swetha](https://www.ruby-forum.com/u/swetha)\
**Replies:** 3\
**Last updated:** [April 28, 2010, 7:15pm UTC](https://www.ruby-forum.com/t/simple-search/187741 "2010-04-28T19:15:29Z")

</div>

I need help with simple search .I worked on railscasts example,but its not working. Can anyone give me an example of simple search logic.Thanks in Advance

---

## [Using jquery](https://www.ruby-forum.com/t/using-jquery/187729)

<div class="topic-metadata">

**Author:** [@sshefer](https://www.ruby-forum.com/u/sshefer)\
**Replies:** 1\
**Last updated:** [April 28, 2010, 7:14pm UTC](https://www.ruby-forum.com/t/using-jquery/187729 "2010-04-28T19:14:15Z")

</div>

I have installed jrails and I was sure I don’t have to change any thing in my design that used prototype.js . I am using sortable\_element in my design and it stopped working after installing jrails. I was sure and I q…

---

## [How to match dynamic named routes in Rails 3](https://www.ruby-forum.com/t/how-to-match-dynamic-named-routes-in-rails-3/187723)

<div class="topic-metadata">

**Author:** [@bluetrust](https://www.ruby-forum.com/u/bluetrust)\
**Replies:** 1\
**Last updated:** [April 28, 2010, 7:03pm UTC](https://www.ruby-forum.com/t/how-to-match-dynamic-named-routes-in-rails-3/187723 "2010-04-28T19:03:46Z")

</div>

Hi everyone, I’ve been digging pretty deeply into the new routing capabilities in Rails 3 and have been very impressed by what I’ve seen so far. However, in my exploration I haven’t been able to figure out one final …

---

## [JOBS (RoR Developers)](https://www.ruby-forum.com/t/jobs-ror-developers/187667)

<div class="topic-metadata">

**Author:** [@Paul\_Elkin](https://www.ruby-forum.com/u/Paul_Elkin)\
**Replies:** 1\
**Last updated:** [April 28, 2010, 7:02pm UTC](https://www.ruby-forum.com/t/jobs-ror-developers/187667 "2010-04-28T19:02:36Z")

</div>

I have an exiting opportunity to join a new open source development project on either a permanent or temporary basis based in the North West of England. If you have strong experience developing web solutions using RoR…

---

## [Column names](https://www.ruby-forum.com/t/column-names/187744)

<div class="topic-metadata">

**Author:** [@ESESES](https://www.ruby-forum.com/u/ESESES)\
**Replies:** 1\
**Last updated:** [April 28, 2010, 6:46pm UTC](https://www.ruby-forum.com/t/column-names/187744 "2010-04-28T18:46:47Z")

</div>

Is there a function that can be called on an object that returns a hash of the colum names (i.e. attributes) of the object?

---

## [Translated (language-aware) routes in Rails application](https://www.ruby-forum.com/t/translated-language-aware-routes-in-rails-application/187639)

<div class="topic-metadata">

**Author:** [@PaweSSSSSK](https://www.ruby-forum.com/u/PaweSSSSSK)\
**Replies:** 4\
**Last updated:** [April 28, 2010, 6:35pm UTC](https://www.ruby-forum.com/t/translated-language-aware-routes-in-rails-application/187639 "2010-04-28T18:35:05Z")

</div>

Hi, I’d like to have translated languate-aware routes in my application, like: /projects/5/permissions =\> locale “PL” /projekty/5/pozwolenia =\> locale “PL” Is there any way to achieve it with RESTful routes? I have …

---

## [ActiveResource does not detect errors for my very simple model](https://www.ruby-forum.com/t/activeresource-does-not-detect-errors-for-my-very-simple-model/187743)

<div class="topic-metadata">

**Author:** [@tomuhs](https://www.ruby-forum.com/u/tomuhs)\
**Replies:** 1\
**Last updated:** [April 28, 2010, 6:30pm UTC](https://www.ruby-forum.com/t/activeresource-does-not-detect-errors-for-my-very-simple-model/187743 "2010-04-28T18:30:59Z")

</div>

The documentation says to return a code 422 with a packet in the following format: First cannot be empty So that is what I am doing. But my model will not raise an exception on a create call that returns such a respo…

---

## [Custom view helper](https://www.ruby-forum.com/t/custom-view-helper/187737)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 7\
**Last updated:** [April 28, 2010, 6:15pm UTC](https://www.ruby-forum.com/t/custom-view-helper/187737 "2010-04-28T18:15:45Z")

</div>

How would I take the following and make it a view helper? site.name site.address site.city, site.state.upcase, site.zipcode

---

## [Eager load fail; why is this association loading individually?](https://www.ruby-forum.com/t/eager-load-fail-why-is-this-association-loading-individually/187739)

<div class="topic-metadata">

**Author:** [@brian](https://www.ruby-forum.com/u/brian)\
**Replies:** 0\
**Last updated:** [April 28, 2010, 5:21pm UTC](https://www.ruby-forum.com/t/eager-load-fail-why-is-this-association-loading-individually/187739 "2010-04-28T17:21:54Z")

</div>

I’m trying to avoid the N+1 queries problem with eager loading, but it’s not working. The associated models are still being loaded individually. Here are the relevant ActiveRecords and their relationships: class Play…

---

## [Locational relationship?](https://www.ruby-forum.com/t/locational-relationship/187700)

<div class="topic-metadata">

**Author:** [@robo](https://www.ruby-forum.com/u/robo)\
**Replies:** 3\
**Last updated:** [April 28, 2010, 5:01pm UTC](https://www.ruby-forum.com/t/locational-relationship/187700 "2010-04-28T17:01:23Z")

</div>

ok, I’ve got a model called Location, the idea being that i have a bunch of locations aligned to a grid. Each location has a pointer to it’s neighbors, like so create\_table “locations”, :force =\> true do |t| t.strin…

---

## [Adding custom fields dynamically to a model](https://www.ruby-forum.com/t/adding-custom-fields-dynamically-to-a-model/187712)

<div class="topic-metadata">

**Author:** [@pankaj](https://www.ruby-forum.com/u/pankaj)\
**Replies:** 3\
**Last updated:** [April 28, 2010, 4:58pm UTC](https://www.ruby-forum.com/t/adding-custom-fields-dynamically-to-a-model/187712 "2010-04-28T16:58:09Z")

</div>

I have a model called List which has many records class List has\_many :records end class Record end The table Record has 2 permanent fields: name, email. Besides these 2 fields, for each List a Record can have ‘n’…

---

## [Use of :: operator](https://www.ruby-forum.com/t/use-of-operator/187720)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 2\
**Last updated:** [April 28, 2010, 4:01pm UTC](https://www.ruby-forum.com/t/use-of-operator/187720 "2010-04-28T16:01:32Z")

</div>

Hi, I want to know the use of “::” operator in rails. Actually, I have created a module with name “Email” and written a method def check\_email(email) end I want to access this method. So I went to the “ruby/script c…

---

## [How to save text](https://www.ruby-forum.com/t/how-to-save-text/187719)

<div class="topic-metadata">

**Author:** [@nirosh](https://www.ruby-forum.com/u/nirosh)\
**Replies:** 9\
**Last updated:** [April 28, 2010, 3:28pm UTC](https://www.ruby-forum.com/t/how-to-save-text/187719 "2010-04-28T15:28:52Z")

</div>

hi i’m working on a poem site. everything is ok but i dono how to save the poem with the style which is applied in the text area. so anybody have any idea. sorry for my english. thanks in advance

---

## [Problem using attachment\_fu with S3](https://www.ruby-forum.com/t/problem-using-attachment-fu-with-s3/187526)

<div class="topic-metadata">

**Author:** [@sshefer](https://www.ruby-forum.com/u/sshefer)\
**Replies:** 2\
**Last updated:** [April 28, 2010, 12:59pm UTC](https://www.ruby-forum.com/t/problem-using-attachment-fu-with-s3/187526 "2010-04-28T12:59:37Z")

</div>

Hi, My S3 bucket is located in the US I have attachment\_fu working when using file system storage I have sw-swf upload plugin working with my S3 account but I can not get attachment\_fu to work with S3 storage. the e…

---

## [How to pass model names?](https://www.ruby-forum.com/t/how-to-pass-model-names/187730)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 3\
**Last updated:** [April 28, 2010, 12:50pm UTC](https://www.ruby-forum.com/t/how-to-pass-model-names/187730 "2010-04-28T12:50:14Z")

</div>

How to pass model names? The scenario is that i have written a function in application\_hepler.rb as like… def all\_record\_ids(model\_name) all\_records = model\_name.all.find\_all { |record| record.status == “ACTIVE” } …

---

## [Rejecting a nested object if all attributes are blank](https://www.ruby-forum.com/t/rejecting-a-nested-object-if-all-attributes-are-blank/186936)

<div class="topic-metadata">

**Author:** [@ESESES](https://www.ruby-forum.com/u/ESESES)\
**Replies:** 3\
**Last updated:** [April 28, 2010, 12:19pm UTC](https://www.ruby-forum.com/t/rejecting-a-nested-object-if-all-attributes-are-blank/186936 "2010-04-28T12:19:47Z")

</div>

How do I reject the creation of an object if all of the attributes are blank? accepts\_nested\_attributes\_for :questions, :allow\_destroy =\> true, :reject\_if =\> lambda {|a| a.each.blank? }

---

## [Memcache session store in Rails 3](https://www.ruby-forum.com/t/memcache-session-store-in-rails-3/187605)

<div class="topic-metadata">

**Author:** [@tlx](https://www.ruby-forum.com/u/tlx)\
**Replies:** 1\
**Last updated:** [April 28, 2010, 11:59am UTC](https://www.ruby-forum.com/t/memcache-session-store-in-rails-3/187605 "2010-04-28T11:59:17Z")

</div>

Hi everyone, I found a guide to config session store using memcache-client in Rails 2.x. However, it seems config files were changed in Rails 3, and I’m quite confused how to make these things work on Rails 3. Googled…

---

## [Paragraph styling problem](https://www.ruby-forum.com/t/paragraph-styling-problem/187724)

<div class="topic-metadata">

**Author:** [@rahul\_m](https://www.ruby-forum.com/u/rahul_m)\
**Replies:** 3\
**Last updated:** [April 28, 2010, 11:42am UTC](https://www.ruby-forum.com/t/paragraph-styling-problem/187724 "2010-04-28T11:42:54Z")

</div>

hello , i have following content in my string … str=" hiii rahul mehta "; i want to show first 150 character in a single line how i cant show it pleas help… thanks rahul

---

## ["cache-money" - how to configure and get it working?](https://www.ruby-forum.com/t/cache-money-how-to-configure-and-get-it-working/187718)

<div class="topic-metadata">

**Author:** [@ct9a](https://www.ruby-forum.com/u/ct9a)\
**Replies:** 0\
**Last updated:** [April 28, 2010, 7:45am UTC](https://www.ruby-forum.com/t/cache-money-how-to-configure-and-get-it-working/187718 "2010-04-28T07:45:14Z")

</div>

hi, guts, I am trying to give cache-money (http://github.com/nkallen/cache- money) a go. Sadly, one the steps in its documentation is not very complete. -------- Extract start ------------------------------- Step 2:…

---

## ["ORA-12154: TNS:..." error after successful oracle connection](https://www.ruby-forum.com/t/ora-12154-tns-error-after-successful-oracle-connection/187699)

<div class="topic-metadata">

**Author:** [@kimda](https://www.ruby-forum.com/u/kimda)\
**Replies:** 3\
**Last updated:** [April 28, 2010, 5:03am UTC](https://www.ruby-forum.com/t/ora-12154-tns-error-after-successful-oracle-connection/187699 "2010-04-28T05:03:06Z")

</div>

Hi, After a few days of struggling, I was able to run this command successfully. ruby -r oci8 -e “OCI8.new(‘xxx\_dba’, ‘xxx’, ‘//xxxx:1521/ xxxxx.xxx.org’).exec(‘SELECT 1 from dual’) {|r| puts r.join}” I got “1.0” as…

---

## [Rails and MSSQL](https://www.ruby-forum.com/t/rails-and-mssql/187704)

<div class="topic-metadata">

**Author:** [@rhossi](https://www.ruby-forum.com/u/rhossi)\
**Replies:** 0\
**Last updated:** [April 28, 2010, 3:05am UTC](https://www.ruby-forum.com/t/rails-and-mssql/187704 "2010-04-28T03:05:27Z")

</div>

My company is developing an application for a client. The client has an ASP.NET web site and SQL Server 2008 database and wants to keep it He is complaining that ActiveRecord does not communicate natively with SQL S…

---

## [Rails and mssql](https://www.ruby-forum.com/t/rails-and-mssql/187702)

<div class="topic-metadata">

**Author:** [@rhossi](https://www.ruby-forum.com/u/rhossi)\
**Replies:** 0\
**Last updated:** [April 28, 2010, 2:22am UTC](https://www.ruby-forum.com/t/rails-and-mssql/187702 "2010-04-28T02:22:08Z")

</div>

My company is developing an application for a customer. The customer have an ASP.NET web site and SQL Server 2008 database. The client wants to keep SQL Server 2008 database and he is complaining that ActiveRecord doe…

---

## [Disable Logging on a Controller/Action](https://www.ruby-forum.com/t/disable-logging-on-a-controller-action/187687)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [April 28, 2010, 1:55am UTC](https://www.ruby-forum.com/t/disable-logging-on-a-controller-action/187687 "2010-04-28T01:55:47Z")

</div>

Does anyone know what the best way to disable logging on a controller or specific action? I’ve seen a lot of threads, but no real “best practice”? Thanks, Tom

---

## [How to start an edge rails app](https://www.ruby-forum.com/t/how-to-start-an-edge-rails-app/187643)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 2\
**Last updated:** [April 28, 2010, 1:07am UTC](https://www.ruby-forum.com/t/how-to-start-an-edge-rails-app/187643 "2010-04-28T01:07:38Z")

</div>

I want to check out an issue in edge rails. I’ve never used edge before and am having a lot of trouble getting it up and running. Following modified instructions from $ mkdir -p app/vendor $ cd app $ git clone git…

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

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