# Rails

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

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

---

## [Problem w/ActionWebService and Inheritance in Service Params](https://www.ruby-forum.com/t/problem-w-actionwebservice-and-inheritance-in-service-params/161449)

<div class="topic-metadata">

**Author:** [@jfoxny](https://www.ruby-forum.com/u/jfoxny)\
**Replies:** 1\
**Last updated:** [February 26, 2009, 6:17pm UTC](https://www.ruby-forum.com/t/problem-w-actionwebservice-and-inheritance-in-service-params/161449 "2009-02-26T18:17:44Z")

</div>

I have a service method that takes a PaymentMethod which can either be a CreditCard or a PayPal account. When I request the service and pass one or the other it always comes over as a PaymentMethod; the service doesn…

---

## [Permissions](https://www.ruby-forum.com/t/permissions/161456)

<div class="topic-metadata">

**Author:** [@fcruxen](https://www.ruby-forum.com/u/fcruxen)\
**Replies:** 0\
**Last updated:** [February 26, 2009, 5:56pm UTC](https://www.ruby-forum.com/t/permissions/161456 "2009-02-26T17:56:43Z")

</div>

Hi, hi, hi little droogies, I have set a small permission system, made a before\_filter in application controller to check if the logged user can access the method. Through RJS, a pop-up message appears, the basic: r…

---

## [Tagging](https://www.ruby-forum.com/t/tagging/161431)

<div class="topic-metadata">

**Author:** [@chaitanya](https://www.ruby-forum.com/u/chaitanya)\
**Replies:** 2\
**Last updated:** [February 26, 2009, 5:43pm UTC](https://www.ruby-forum.com/t/tagging/161431 "2009-02-26T17:43:47Z")

</div>

Hello friends I would like to add taggable feature into my application. Any resources for tagging.

---

## [Associations, calculate and virtual attributes](https://www.ruby-forum.com/t/associations-calculate-and-virtual-attributes/161454)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [February 26, 2009, 5:38pm UTC](https://www.ruby-forum.com/t/associations-calculate-and-virtual-attributes/161454 "2009-02-26T17:38:26Z")

</div>

I am considering how to approach the problem of providing client balances. I have considered treating balances as virtual attributes in some fashion approximating this: class Client \< AR … has\_many :ar\_transactions…

---

## [\*\* REQ : Ruby on Rails, AJAx, Web services ;3-6M;GA ;\*\*\*\*\*MONDAY START\*\*\*\*\*](https://www.ruby-forum.com/t/req-ruby-on-rails-ajax-web-services-3-6m-ga-monday-start/161453)

<div class="topic-metadata">

**Author:** [@hr.dataformix](https://www.ruby-forum.com/u/hr.dataformix)\
**Replies:** 0\
**Last updated:** [February 26, 2009, 5:29pm UTC](https://www.ruby-forum.com/t/req-ruby-on-rails-ajax-web-services-3-6m-ga-monday-start/161453 "2009-02-26T17:29:06Z")

</div>

Email word copy of profile with contact information : removed\_email\_address@domain.invalid ; looking for Senior Front end developer /Architect ( About 10 + Yrs experience consultant ) who has experience with Ruby on …

---

## [Extracting the name of the template I am yielding](https://www.ruby-forum.com/t/extracting-the-name-of-the-template-i-am-yielding/161434)

<div class="topic-metadata">

**Author:** [@rob](https://www.ruby-forum.com/u/rob)\
**Replies:** 3\
**Last updated:** [February 26, 2009, 5:25pm UTC](https://www.ruby-forum.com/t/extracting-the-name-of-the-template-i-am-yielding/161434 "2009-02-26T17:25:34Z")

</div>

Hey guys, I’m trying to extract the name of the template I am currently to be yielding from my layout, but with no success. Does anyone know how to do that? Suppose I am calling the MainController#create action. On f…

---

## [Has\_and\_belongs\_to\_many for 3 entities](https://www.ruby-forum.com/t/has-and-belongs-to-many-for-3-entities/161444)

<div class="topic-metadata">

**Author:** [@pesho318i](https://www.ruby-forum.com/u/pesho318i)\
**Replies:** 2\
**Last updated:** [February 26, 2009, 3:27pm UTC](https://www.ruby-forum.com/t/has-and-belongs-to-many-for-3-entities/161444 "2009-02-26T15:27:33Z")

</div>

Hello, in my app, I have users, groups, and grouproles. Each user can be a member of multiple groups. This I have achieved by imposing has\_and\_belongs\_to\_many relationship between users and groups (i.e. creating anot…

---

## [Facebook Connect and Restful Authentication](https://www.ruby-forum.com/t/facebook-connect-and-restful-authentication/161443)

<div class="topic-metadata">

**Author:** [@liverail](https://www.ruby-forum.com/u/liverail)\
**Replies:** 0\
**Last updated:** [February 26, 2009, 2:38pm UTC](https://www.ruby-forum.com/t/facebook-connect-and-restful-authentication/161443 "2009-02-26T14:38:13Z")

</div>

I thought people in this group may be interested in a tutorial I’ve written on integrating Restful Authentication with Facebook Connect. You can find it over at Hope people might find it useful.

---

## [Set custom header for Post requests?](https://www.ruby-forum.com/t/set-custom-header-for-post-requests/161435)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 2\
**Last updated:** [February 26, 2009, 2:15pm UTC](https://www.ruby-forum.com/t/set-custom-header-for-post-requests/161435 "2009-02-26T14:15:44Z")

</div>

Hello, I need some kind of an autorization for my \*\_to\_remote functions in my application. For example one of the \*\_to\_remote function calls “/pages/welcome” and the page should be updated via page.replace\_html or so…

---

## [Passing objects to methods](https://www.ruby-forum.com/t/passing-objects-to-methods/161413)

<div class="topic-metadata">

**Author:** [@pesho318i](https://www.ruby-forum.com/u/pesho318i)\
**Replies:** 7\
**Last updated:** [February 26, 2009, 1:48pm UTC](https://www.ruby-forum.com/t/passing-objects-to-methods/161413 "2009-02-26T13:48:45Z")

</div>

hey guys, I need to pass an object to a ruby method, which handles an Ajax call. I would appreciate if you could tell me a convenient way to do so. Here is some of my javascript for the Ajax: function submitAjax(evt)…

---

## [Testing for a a new file using Rspec](https://www.ruby-forum.com/t/testing-for-a-a-new-file-using-rspec/161406)

<div class="topic-metadata">

**Author:** [@Beriahotep](https://www.ruby-forum.com/u/Beriahotep)\
**Replies:** 1\
**Last updated:** [February 26, 2009, 1:38pm UTC](https://www.ruby-forum.com/t/testing-for-a-a-new-file-using-rspec/161406 "2009-02-26T13:38:30Z")

</div>

Hi, I am new to Rspec so i am not sure if this can be done. I want to write a test that the outcome of a function is that a new file is successfully created in a directory. The test would be somthing like “it should …

---

## [One more thing to add to your security portfolio](https://www.ruby-forum.com/t/one-more-thing-to-add-to-your-security-portfolio/161427)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 1\
**Last updated:** [February 26, 2009, 1:28pm UTC](https://www.ruby-forum.com/t/one-more-thing-to-add-to-your-security-portfolio/161427 "2009-02-26T13:28:30Z")

</div>

I recently implemented a system which stores DNS names, and writes out DNS zone files. I found these to be rather useful tests: def test\_name\_with\_newline\_fails z = Zone.new(:name =\> “test\\nzone”) assert !z.valid? …

---

## [Secure but elegant destruction method](https://www.ruby-forum.com/t/secure-but-elegant-destruction-method/161336)

<div class="topic-metadata">

**Author:** [@vahagn](https://www.ruby-forum.com/u/vahagn)\
**Replies:** 3\
**Last updated:** [February 26, 2009, 1:14pm UTC](https://www.ruby-forum.com/t/secure-but-elegant-destruction-method/161336 "2009-02-26T13:14:01Z")

</div>

Hi,- I am looking for a clean and secure way for an ActiveRecord instance to delete itself. Say I have a User model in my app. Then the destructive action would be /users/user\_id/destroy. If this action is not secured…

---

## [.to\_xml on an index, custom set response by Object](https://www.ruby-forum.com/t/to-xml-on-an-index-custom-set-response-by-object/161418)

<div class="topic-metadata">

**Author:** [@mattfs218](https://www.ruby-forum.com/u/mattfs218)\
**Replies:** 6\
**Last updated:** [February 26, 2009, 12:06pm UTC](https://www.ruby-forum.com/t/to-xml-on-an-index-custom-set-response-by-object/161418 "2009-02-26T12:06:41Z")

</div>

I have a Contacts controller, that I’m using to output contacts when an index is called, but the XML that I will output for each contact varies. I’m not having any success using :proc or :method :method could work, bu…

---

## [Spell check](https://www.ruby-forum.com/t/spell-check/161419)

<div class="topic-metadata">

**Author:** [@madhavi.k](https://www.ruby-forum.com/u/madhavi.k)\
**Replies:** 0\
**Last updated:** [February 26, 2009, 10:52am UTC](https://www.ruby-forum.com/t/spell-check/161419 "2009-02-26T10:52:35Z")

</div>

hello , anybody could point me in the right direction to enable spell checker with TinyMCE for rails application.

---

## [Detecting acts\_as\_x?](https://www.ruby-forum.com/t/detecting-acts-as-x/161403)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 2\
**Last updated:** [February 26, 2009, 10:44am UTC](https://www.ruby-forum.com/t/detecting-acts-as-x/161403 "2009-02-26T10:44:22Z")

</div>

I’m writing an acts\_as\_x type plugin/gem and I need to know how to detect which other acts\_as plugins are installed so I can avoid name conflicts. What’s a simple way to do this? Thanks John S.

---

## [Fckeditor](https://www.ruby-forum.com/t/fckeditor/161415)

<div class="topic-metadata">

**Author:** [@tanker](https://www.ruby-forum.com/u/tanker)\
**Replies:** 0\
**Last updated:** [February 26, 2009, 10:20am UTC](https://www.ruby-forum.com/t/fckeditor/161415 "2009-02-26T10:20:24Z")

</div>

Please help when i try to load images with fckeditor i have this error The server didn’t send back a proper XML response. Please contact your system administrator. XML request error: Internal Server Error (500) Reque…

---

## [Google Data on Rails](https://www.ruby-forum.com/t/google-data-on-rails/161410)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [February 26, 2009, 9:46am UTC](https://www.ruby-forum.com/t/google-data-on-rails/161410 "2009-02-26T09:46:00Z")

</div>

May be you don’t know yet: http://code.google.com/intl/en/apis/gdata/articles/gdata\_on\_rails.html Google Data on Ruby On Rails!

---

## [Cancel the last migration?](https://www.ruby-forum.com/t/cancel-the-last-migration/161357)

<div class="topic-metadata">

**Author:** [@loader](https://www.ruby-forum.com/u/loader)\
**Replies:** 3\
**Last updated:** [February 26, 2009, 9:46am UTC](https://www.ruby-forum.com/t/cancel-the-last-migration/161357 "2009-02-26T09:46:00Z")

</div>

Hello everyone! How can I cancel the last migration? Thank you!

---

## [JOBS: Lead RoR Developer - Pleasanton, CA](https://www.ruby-forum.com/t/jobs-lead-ror-developer-pleasanton-ca/161408)

<div class="topic-metadata">

**Author:** [@FunJobs](https://www.ruby-forum.com/u/FunJobs)\
**Replies:** 0\
**Last updated:** [February 26, 2009, 9:33am UTC](https://www.ruby-forum.com/t/jobs-lead-ror-developer-pleasanton-ca/161408 "2009-02-26T09:33:00Z")

</div>

FunMobility, America’s largest mobile content community is dedicated to revolutionizing how people use their mobile phone to create content, interact with multimedia content and each other. We are passionate about cre…

---

## [Header expiry on google charts and amazon s3](https://www.ruby-forum.com/t/header-expiry-on-google-charts-and-amazon-s3/161407)

<div class="topic-metadata">

**Author:** [@ankitparekh](https://www.ruby-forum.com/u/ankitparekh)\
**Replies:** 0\
**Last updated:** [February 26, 2009, 9:16am UTC](https://www.ruby-forum.com/t/header-expiry-on-google-charts-and-amazon-s3/161407 "2009-02-26T09:16:57Z")

</div>

Hey all I am using google charts in my app and even Amazon s3. So i m getting some jpg component from these sites… can ne one tell me how to set header expiry for those components that r coming from other servers lik…

---

## [Ruby1.9.1 Bus Error](https://www.ruby-forum.com/t/ruby1-9-1-bus-error/161081)

<div class="topic-metadata">

**Author:** [@rick](https://www.ruby-forum.com/u/rick)\
**Replies:** 8\
**Last updated:** [February 26, 2009, 8:54am UTC](https://www.ruby-forum.com/t/ruby1-9-1-bus-error/161081 "2009-02-26T08:54:44Z")

</div>

Here’s my particulars: Mac OS X 10.5.6 1.25 GHz PPC G4 /test 726 \> script/about /opt/local/lib/ruby/gems/1.9.1/gems/actionpack-2.3.0/lib/ action\_controller/routing/segments.rb:6: warning: encoding option is ignored…

---

## [Which one is light weight IDE for Rails](https://www.ruby-forum.com/t/which-one-is-light-weight-ide-for-rails/161390)

<div class="topic-metadata">

**Author:** [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Replies:** 2\
**Last updated:** [February 26, 2009, 8:35am UTC](https://www.ruby-forum.com/t/which-one-is-light-weight-ide-for-rails/161390 "2009-02-26T08:35:58Z")

</div>

Hello friends , i want favor form your side , which is the light weight IDE for rails on Windows Xp system ? Can we have file management section (file browsing) in SciTE ? Thanks. Dharmdip

---

## [Create, read update delete ...xml fields ...ibm db2](https://www.ruby-forum.com/t/create-read-update-delete-xml-fields-ibm-db2/161402)

<div class="topic-metadata">

**Author:** [@artificialman](https://www.ruby-forum.com/u/artificialman)\
**Replies:** 0\
**Last updated:** [February 26, 2009, 7:42am UTC](https://www.ruby-forum.com/t/create-read-update-delete-xml-fields-ibm-db2/161402 "2009-02-26T07:42:39Z")

</div>

HI I am working on a project which used ibm db2 and ror, Its very new for me! Finally I am able to connect do IBM DB2 - ROR . I can do scaffolding too. Works perfect. IBM DB2 supports xml field and I can update with …

---

## [Getting & validating check\_box input in button\_to\_function](https://www.ruby-forum.com/t/getting-validating-check-box-input-in-button-to-function/161400)

<div class="topic-metadata">

**Author:** [@tnyplz](https://www.ruby-forum.com/u/tnyplz)\
**Replies:** 0\
**Last updated:** [February 26, 2009, 7:33am UTC](https://www.ruby-forum.com/t/getting-validating-check-box-input-in-button-to-function/161400 "2009-02-26T07:33:10Z")

</div>

Hi all, Given below is a snippet of my ruby page. While clicking on the Edit/Delete buttons, it should: Identify how many chk boxes are checked (If Edit, it should be one) Pass the chk box values (project ids) to the…

---

## [Saving rich text to the database](https://www.ruby-forum.com/t/saving-rich-text-to-the-database/161327)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 3\
**Last updated:** [February 26, 2009, 6:24am UTC](https://www.ruby-forum.com/t/saving-rich-text-to-the-database/161327 "2009-02-26T06:24:17Z")

</div>

I’ve started trying to use the wysihat rich text editor from 37- signals and everything is going well except that I get an error when trying to save the text from the enhanced field to the database. This is from my l…

---

## [Spell checker](https://www.ruby-forum.com/t/spell-checker/161395)

<div class="topic-metadata">

**Author:** [@chaitanya](https://www.ruby-forum.com/u/chaitanya)\
**Replies:** 0\
**Last updated:** [February 26, 2009, 6:07am UTC](https://www.ruby-forum.com/t/spell-checker/161395 "2009-02-26T06:07:50Z")

</div>

Hi friends, I am not getting the spell checking feature for TinyMCE editor in rails 2.0 version. Can anybody help me out?

---

## [Fixture hash not available on the console in test env?](https://www.ruby-forum.com/t/fixture-hash-not-available-on-the-console-in-test-env/157302)

<div class="topic-metadata">

**Author:** [@redii](https://www.ruby-forum.com/u/redii)\
**Replies:** 3\
**Last updated:** [February 26, 2009, 6:00am UTC](https://www.ruby-forum.com/t/fixture-hash-not-available-on-the-console-in-test-env/157302 "2009-02-26T06:00:17Z")

</div>

While the generated id certainly works well for tests, it was previously easier when loading the test console and interacting with your model relationships. Is there an expectation to make the fixture hashes availabl…

---

## [\[ANN/ADV\] Sample Chapter From "Ruby Best Practices"](https://www.ruby-forum.com/t/ann-adv-sample-chapter-from-ruby-best-practices/196902)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [February 26, 2009, 2:40am UTC](https://www.ruby-forum.com/t/ann-adv-sample-chapter-from-ruby-best-practices/196902 "2009-02-26T02:40:37Z")

</div>

== The short story Hi folks, I bugged O’Reilly to let me release a sample chapter of my book, and they let me. So you can now directly download a PDF copy of my “Mastering the Dynamic Toolkit” chapter without having …

---

## [Beginner's question](https://www.ruby-forum.com/t/beginners-question/161383)

<div class="topic-metadata">

**Author:** [@valk](https://www.ruby-forum.com/u/valk)\
**Replies:** 1\
**Last updated:** [February 26, 2009, 2:39am UTC](https://www.ruby-forum.com/t/beginners-question/161383 "2009-02-26T02:39:35Z")

</div>

Hi all, Sorry if this question looks stupid… In my post on edit action I have: def edit @post = Post.find(params\[:id\],:include =\> \[:ingredients, {:ingredients =\> :heb\_ingredient}\]) ingredients = @post.ingredients …

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

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