# Rails

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

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

---

## [Facebooker SystemExit](https://www.ruby-forum.com/t/facebooker-systemexit/181271)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 1\
**Last updated:** [January 8, 2010, 6:10pm UTC](https://www.ruby-forum.com/t/facebooker-systemexit/181271 "2010-01-08T18:10:29Z")

</div>

Hello, I have a problem with an application using facebooker plugin that works fine locally using Mongrel but breaks in fastcgi production environment. I am using the authlogic\_facebook\_connect plugin with facebook\_…

---

## [Problem using build with has\_many :through relationship](https://www.ruby-forum.com/t/problem-using-build-with-has-many-through-relationship/181274)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 1\
**Last updated:** [January 8, 2010, 6:04pm UTC](https://www.ruby-forum.com/t/problem-using-build-with-has-many-through-relationship/181274 "2010-01-08T18:04:02Z")

</div>

Hello all, I’m having problems creating a new record with has\_many :through My application is quite complicated so I’ll try to explain it as easy as I can. I have a many to many relationship with Projects, IRBs and R…

---

## [Callbacks from model to request?](https://www.ruby-forum.com/t/callbacks-from-model-to-request/181278)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 0\
**Last updated:** [January 8, 2010, 5:41pm UTC](https://www.ruby-forum.com/t/callbacks-from-model-to-request/181278 "2010-01-08T17:41:12Z")

</div>

I’d like to ask if people have thoughts on clean ways of making behaviour in the model depend on attributes of the request. Things I’m thinking of: per-user Time.zone (currently handled by setting a thread-local va…

---

## [Rendering partial from button click, not passing locals?](https://www.ruby-forum.com/t/rendering-partial-from-button-click-not-passing-locals/181244)

<div class="topic-metadata">

**Author:** [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Replies:** 5\
**Last updated:** [January 8, 2010, 5:25pm UTC](https://www.ruby-forum.com/t/rendering-partial-from-button-click-not-passing-locals/181244 "2010-01-08T17:25:38Z")

</div>

I wrote the relevant code in this pastie: http://pastie.org/770642 (it’s not too much code – but it looks a ton better than black on white!) And here is the bit from my log: Processing UltrasoundsController#index (f…

---

## [Horizontal partitioning of database to scale the ROR application](https://www.ruby-forum.com/t/horizontal-partitioning-of-database-to-scale-the-ror-application/181258)

<div class="topic-metadata">

**Author:** [@Ankit\_Varshney](https://www.ruby-forum.com/u/Ankit_Varshney)\
**Replies:** 3\
**Last updated:** [January 8, 2010, 4:29pm UTC](https://www.ruby-forum.com/t/horizontal-partitioning-of-database-to-scale-the-ror-application/181258 "2010-01-08T16:29:49Z")

</div>

I want to do horizontal partitioning of database to scale my application. Is there any way to do that Ruby on Rails application.

---

## [Facebook Integration](https://www.ruby-forum.com/t/facebook-integration/181263)

<div class="topic-metadata">

**Author:** [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Replies:** 2\
**Last updated:** [January 8, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/facebook-integration/181263 "2010-01-08T16:27:46Z")

</div>

I want to display my facebook updates on my rails application. I presume I’d use a plug-in for this or is there a better way? Thanks.

---

## [How to change an existing rails app to Instant rails app](https://www.ruby-forum.com/t/how-to-change-an-existing-rails-app-to-instant-rails-app/197016)

<div class="topic-metadata">

**Author:** [@ralu](https://www.ruby-forum.com/u/ralu)\
**Replies:** 1\
**Last updated:** [January 8, 2010, 3:06pm UTC](https://www.ruby-forum.com/t/how-to-change-an-existing-rails-app-to-instant-rails-app/197016 "2010-01-08T15:06:41Z")

</div>

i have a rails app , i need to change that app to instant rails app. i have been using Net beans as IDE is der an easy step to do that??? rather creating a new one by copy paste?

---

## [AssociationCollection or Array](https://www.ruby-forum.com/t/associationcollection-or-array/181243)

<div class="topic-metadata">

**Author:** [@cntrytwist](https://www.ruby-forum.com/u/cntrytwist)\
**Replies:** 3\
**Last updated:** [January 8, 2010, 2:17pm UTC](https://www.ruby-forum.com/t/associationcollection-or-array/181243 "2010-01-08T14:17:31Z")

</div>

Could some kind soul help a confused programmer with a stupidly simple gotcha? I have an association like this. Project has\_and\_belongs\_to\_many Contracts Contracts has\_and\_belongs\_to\_many Projects I want a simple ar…

---

## [Problems with link\_to to delete a resource](https://www.ruby-forum.com/t/problems-with-link-to-to-delete-a-resource/181256)

<div class="topic-metadata">

**Author:** [@LeonS](https://www.ruby-forum.com/u/LeonS)\
**Replies:** 1\
**Last updated:** [January 8, 2010, 1:21pm UTC](https://www.ruby-forum.com/t/problems-with-link-to-to-delete-a-resource/181256 "2010-01-08T13:21:56Z")

</div>

Hi, I’ve got Users and Mates in my RoR Application. A mate is a User and is descriped through a relationship. So, i’ve got a Users Comntroller and a Mate Controller. How do i link do the destroy method of the Mate Co…

---

## [Can rails even gracefully upload?](https://www.ruby-forum.com/t/can-rails-even-gracefully-upload/181087)

<div class="topic-metadata">

**Author:** [@brianp](https://www.ruby-forum.com/u/brianp)\
**Replies:** 6\
**Last updated:** [January 8, 2010, 10:30am UTC](https://www.ruby-forum.com/t/can-rails-even-gracefully-upload/181087 "2010-01-08T10:30:27Z")

</div>

Sorry I really just wanted to have a title to catch attention. I’ve had no luck with attachment\_fu. It almost works but I’ve failed at finding a solution to it’s pitfalls. (http://groups.google.ca/group/rubyonrails-ta…

---

## [Engines, Rails App architecture in OpenSource context](https://www.ruby-forum.com/t/engines-rails-app-architecture-in-opensource-context/181251)

<div class="topic-metadata">

**Author:** [@vzmind](https://www.ruby-forum.com/u/vzmind)\
**Replies:** 0\
**Last updated:** [January 8, 2010, 6:42am UTC](https://www.ruby-forum.com/t/engines-rails-app-architecture-in-opensource-context/181251 "2010-01-08T06:42:03Z")

</div>

Hi, I have posted the following message on Rails Engines forum but as there is no activity their (strange isnt it?) I re-post it and extend it here. Here we go: \[Engines, Rails App architecture in OpenSource context\]…

---

## [Help](https://www.ruby-forum.com/t/help/73527)

<div class="topic-metadata">

**Author:** [@Chrisr](https://www.ruby-forum.com/u/Chrisr)\
**Replies:** 4\
**Last updated:** [January 8, 2010, 6:22am UTC](https://www.ruby-forum.com/t/help/73527 "2010-01-08T06:22:19Z")

</div>

There is an Audit Type class Each Audit Type has many Audit Items, they are accessible with the method: AuditType.audit\_items It is possible to expire audit items, this sets the expired column to 1. They still need …

---

## [ActionMailer SITE constant](https://www.ruby-forum.com/t/actionmailer-site-constant/181226)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 2\
**Last updated:** [January 8, 2010, 5:07am UTC](https://www.ruby-forum.com/t/actionmailer-site-constant/181226 "2010-01-08T05:07:24Z")

</div>

ActionMailer is expecting the constant SITE to be initialized. I could put SITE = ‘http://localhost:3001’ in development.rb but what I would like to do is to set this constant programmaticly to the current site. I…

---

## [Relationship in Models](https://www.ruby-forum.com/t/relationship-in-models/181196)

<div class="topic-metadata">

**Author:** [@sushi2k](https://www.ruby-forum.com/u/sushi2k)\
**Replies:** 4\
**Last updated:** [January 8, 2010, 2:15am UTC](https://www.ruby-forum.com/t/relationship-in-models/181196 "2010-01-08T02:15:07Z")

</div>

Hello, I’m doing right now my first steps in Ruby on Rails and I’ve got a problem. Just some explanation: A project can have ressources (like an employee) and this ressource can have certain roles (e.g. a team membe…

---

## [Rails, dynamic tables and erp/crm](https://www.ruby-forum.com/t/rails-dynamic-tables-and-erp-crm/181194)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 10\
**Last updated:** [January 8, 2010, 1:17am UTC](https://www.ruby-forum.com/t/rails-dynamic-tables-and-erp-crm/181194 "2010-01-08T01:17:59Z")

</div>

the question that could summarize this in a nutshell is this: does the orm structure of rails make it a poor framework to implement a small erp/crm solution? if you got that then please read ahead - i need some sugges…

---

## [Prevent certain inputs, like "user at gmail com"](https://www.ruby-forum.com/t/prevent-certain-inputs-like-user-at-gmail-com/181232)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 1\
**Last updated:** [January 7, 2010, 10:52pm UTC](https://www.ruby-forum.com/t/prevent-certain-inputs-like-user-at-gmail-com/181232 "2010-01-07T22:52:12Z")

</div>

hi, i have a"comment" field in my app which is kinda public, but i still want to have certain control over of what a user can enter and what not: eg not allowed are email addresses fake string like: “user at gmail c…

---

## [Find by looping thru array](https://www.ruby-forum.com/t/find-by-looping-thru-array/181227)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 2\
**Last updated:** [January 7, 2010, 10:49pm UTC](https://www.ruby-forum.com/t/find-by-looping-thru-array/181227 "2010-01-07T22:49:51Z")

</div>

Hello all, I’m in my third month of Ruby on Rails. I think it’s coming along fairly well. My current issue is this. I’m do a search based on string data some of which is very long. So I’m doing a similar match usin…

---

## [Multi-column search in MySQL](https://www.ruby-forum.com/t/multi-column-search-in-mysql/181159)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 5\
**Last updated:** [January 7, 2010, 10:45pm UTC](https://www.ruby-forum.com/t/multi-column-search-in-mysql/181159 "2010-01-07T22:45:45Z")

</div>

I could handle this fairly easily in PostgreSQL but for this project, I am using MySQL… Postgres, @members = Member.find(:all, :conditions =\> \["LOWER(first\_name||last\_name) LIKE ?", '%' + params\[:member\]\[:name\].down…

---

## [Juggernaut issues](https://www.ruby-forum.com/t/juggernaut-issues/181239)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 0\
**Last updated:** [January 7, 2010, 8:03pm UTC](https://www.ruby-forum.com/t/juggernaut-issues/181239 "2010-01-07T20:03:01Z")

</div>

hi, is someone out there using juggernaut? im getting popups from the browser telling me the various status of juggernaut, and i dont know how to “disable” them… thx tom

---

## [IIS + Apache + Mongrel: Problem with big data submit form](https://www.ruby-forum.com/t/iis-apache-mongrel-problem-with-big-data-submit-form/181238)

<div class="topic-metadata">

**Author:** [@trungdo](https://www.ruby-forum.com/u/trungdo)\
**Replies:** 0\
**Last updated:** [January 7, 2010, 7:56pm UTC](https://www.ruby-forum.com/t/iis-apache-mongrel-problem-with-big-data-submit-form/181238 "2010-01-07T19:56:25Z")

</div>

Hi all, I deployed a Rails application on a Windows Server 2003 machine as follows: I created two instances of Mongrel at ports 4001, 4002 to serve the application I set up an Apache instance at port 8080 for ba…

---

## [Unsubscribe me](https://www.ruby-forum.com/t/unsubscribe-me/181233)

<div class="topic-metadata">

**Author:** [@Oluwayomi\_O](https://www.ruby-forum.com/u/Oluwayomi_O)\
**Replies:** 1\
**Last updated:** [January 7, 2010, 7:53pm UTC](https://www.ruby-forum.com/t/unsubscribe-me/181233 "2010-01-07T19:53:39Z")

</div>

please remove me from this mailing list Regards and Respects, Kindness in thought leads to wisdom. Kindness in speech leads to eloquence. Kindness in action leads to love.

---

## [Splitting a string](https://www.ruby-forum.com/t/splitting-a-string/181223)

<div class="topic-metadata">

**Author:** [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Replies:** 5\
**Last updated:** [January 7, 2010, 7:50pm UTC](https://www.ruby-forum.com/t/splitting-a-string/181223 "2010-01-07T19:50:08Z")

</div>

Example A: “Example One” What I need is a string method to remove " One" from that string so the result is just “Example”. I’m sure this is very simple but I just require a swift response. Thanks.

---

## [Unpacking gems and gem version numbers](https://www.ruby-forum.com/t/unpacking-gems-and-gem-version-numbers/181190)

<div class="topic-metadata">

**Author:** [@coolmenu](https://www.ruby-forum.com/u/coolmenu)\
**Replies:** 4\
**Last updated:** [January 7, 2010, 7:43pm UTC](https://www.ruby-forum.com/t/unpacking-gems-and-gem-version-numbers/181190 "2010-01-07T19:43:06Z")

</div>

I’m thinking about unpacking the gems that my app uses. If my development box has exactly the gem versions I want to unpack, do I still need to specify each gem’s version in config/environment.rb? config.gem “papercl…

---

## [Need guidance to learn rails with the goal of getting a job & working with Ruby & Rails full time](https://www.ruby-forum.com/t/need-guidance-to-learn-rails-with-the-goal-of-getting-a-job-working-with-ruby-rails-full-time/181191)

<div class="topic-metadata">

**Author:** [@tundal45](https://www.ruby-forum.com/u/tundal45)\
**Replies:** 8\
**Last updated:** [January 7, 2010, 7:35pm UTC](https://www.ruby-forum.com/t/need-guidance-to-learn-rails-with-the-goal-of-getting-a-job-working-with-ruby-rails-full-time/181191 "2010-01-07T19:35:28Z")

</div>

I am learning Rails & Ruby right now with the ultimate goal of using these technologies full time. However, my current job is at a windows shop & I am not in a position to influence any decisions on what technologies …

---

## [Text field with autocomplete](https://www.ruby-forum.com/t/text-field-with-autocomplete/181212)

<div class="topic-metadata">

**Author:** [@golf](https://www.ruby-forum.com/u/golf)\
**Replies:** 1\
**Last updated:** [January 7, 2010, 7:27pm UTC](https://www.ruby-forum.com/t/text-field-with-autocomplete/181212 "2010-01-07T19:27:16Z")

</div>

Hey everybody, I am using text field with autocomplete in my posts new action. That works great. Response from autocompleter in firebug: POST http://localhost:3001/posts/auto\_complete\_for\_tag\_name 200 OK 68ms but if…

---

## [Open source software for school study group / community](https://www.ruby-forum.com/t/open-source-software-for-school-study-group-community/181178)

<div class="topic-metadata">

**Author:** [@rubynuby](https://www.ruby-forum.com/u/rubynuby)\
**Replies:** 4\
**Last updated:** [January 7, 2010, 7:24pm UTC](https://www.ruby-forum.com/t/open-source-software-for-school-study-group-community/181178 "2010-01-07T19:24:55Z")

</div>

Hello I need to build a system for a non profit org that allows people to form study groups, to post lessons and take tests (multiple choice), and to keep track of each member’s and group’s progress. Is anyone aware…

---

## [Html formatted string & displaying only upto specific length](https://www.ruby-forum.com/t/html-formatted-string-displaying-only-upto-specific-length/181143)

<div class="topic-metadata">

**Author:** [@subashinikumar](https://www.ruby-forum.com/u/subashinikumar)\
**Replies:** 1\
**Last updated:** [January 7, 2010, 7:18pm UTC](https://www.ruby-forum.com/t/html-formatted-string-displaying-only-upto-specific-length/181143 "2010-01-07T19:18:27Z")

</div>

Hi I have a string str=“ Hgenrik Lundqvist,ggh nv gnm h fsgfb gthe preternaturally handsome Swedish goalie for the New York Rangers, may have been named one of test from Neskdufluh on december a 2009 ” i want to di…

---

## [Exteding/Enhancing SSL Requirement plugin](https://www.ruby-forum.com/t/exteding-enhancing-ssl-requirement-plugin/181228)

<div class="topic-metadata">

**Author:** [@icke](https://www.ruby-forum.com/u/icke)\
**Replies:** 0\
**Last updated:** [January 7, 2010, 7:02pm UTC](https://www.ruby-forum.com/t/exteding-enhancing-ssl-requirement-plugin/181228 "2010-01-07T19:02:38Z")

</div>

I need to use SSL for a certain controller in my app. My app adapts style and some content from the domain being called via request.host. All of the domains are served up from apache-passenger vhost. domain1.com is b…

---

## [Factories, Authentication, and Roles, oh my!](https://www.ruby-forum.com/t/factories-authentication-and-roles-oh-my/181146)

<div class="topic-metadata">

**Author:** [@Curtis\_C](https://www.ruby-forum.com/u/Curtis_C)\
**Replies:** 3\
**Last updated:** [January 7, 2010, 6:46pm UTC](https://www.ruby-forum.com/t/factories-authentication-and-roles-oh-my/181146 "2010-01-07T18:46:49Z")

</div>

I’m pretty new to rails, but I’ve had many years programming in Java. What I’m looking to find is the rails way of implementing some clean way of controlling what the user sees based on the user’s role. The Rails Reci…

---

## [Updating table data](https://www.ruby-forum.com/t/updating-table-data/181167)

<div class="topic-metadata">

**Author:** [@qaswm](https://www.ruby-forum.com/u/qaswm)\
**Replies:** 9\
**Last updated:** [January 7, 2010, 6:46pm UTC](https://www.ruby-forum.com/t/updating-table-data/181167 "2010-01-07T18:46:15Z")

</div>

I have an application in rails in which i am adding a new column in one of the tables. The value for the new column is a bit.ly link and I need to populate this for each record in the table approx. 250 rows will be af…

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

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