# Rails

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

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

---

## [List all field names on a PDF using iText from Rails](https://www.ruby-forum.com/t/list-all-field-names-on-a-pdf-using-itext-from-rails/168737)

<div class="topic-metadata">

**Author:** [@drsharp](https://www.ruby-forum.com/u/drsharp)\
**Replies:** 2\
**Last updated:** [May 27, 2009, 3:39am UTC](https://www.ruby-forum.com/t/list-all-field-names-on-a-pdf-using-itext-from-rails/168737 "2009-05-27T03:39:39Z")

</div>

Hello everyone, Has anyone used iText to list all fields on a PDF AcroForm? There are plenty of java examples to do it, but I do not know how to translate that into ruby. I’m using Rjb. The Java example I’ve found i…

---

## [Cookies are mandatory for Rails app?](https://www.ruby-forum.com/t/cookies-are-mandatory-for-rails-app/168796)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 9\
**Last updated:** [May 27, 2009, 3:30am UTC](https://www.ruby-forum.com/t/cookies-are-mandatory-for-rails-app/168796 "2009-05-27T03:30:33Z")

</div>

is it true that Rails depend on cookies? It seems that flash is a part of session, and session uses cookies… so when i disable cookie in Firefox, what was working became ActionController::InvalidAuthenticityToken so…

---

## [Routs question](https://www.ruby-forum.com/t/routs-question/168885)

<div class="topic-metadata">

**Author:** [@staypufd](https://www.ruby-forum.com/u/staypufd)\
**Replies:** 1\
**Last updated:** [May 27, 2009, 3:13am UTC](https://www.ruby-forum.com/t/routs-question/168885 "2009-05-27T03:13:34Z")

</div>

I would like to redirect a user to the index page if they type in a page that does not exist on my site. How do I go about that?

---

## [IIS, Net::HTTP::Get, and Basic Authentication](https://www.ruby-forum.com/t/iis-net-get-and-basic-authentication/168883)

<div class="topic-metadata">

**Author:** [@BenH](https://www.ruby-forum.com/u/BenH)\
**Replies:** 0\
**Last updated:** [May 27, 2009, 1:32am UTC](https://www.ruby-forum.com/t/iis-net-get-and-basic-authentication/168883 "2009-05-27T01:32:24Z")

</div>

I’m getting a 401.2 from IIS You do not have permission to view this directory or page using the credentials that you supplied because your Web browser is sending a WWW-Authenticate header field that the Web server is…

---

## [Active Resource custom method using POST](https://www.ruby-forum.com/t/active-resource-custom-method-using-post/168856)

<div class="topic-metadata">

**Author:** [@BenH](https://www.ruby-forum.com/u/BenH)\
**Replies:** 1\
**Last updated:** [May 27, 2009, 1:25am UTC](https://www.ruby-forum.com/t/active-resource-custom-method-using-post/168856 "2009-05-27T01:25:24Z")

</div>

I’ve written a small piece of code that is supposed to place an order in a order handling system. get, put and delete functions are working great but I cannot get post to function at all… the error I get back from the…

---

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

<div class="topic-metadata">

**Author:** [@dharshannew](https://www.ruby-forum.com/u/dharshannew)\
**Replies:** 1\
**Last updated:** [May 27, 2009, 12:30am UTC](https://www.ruby-forum.com/t/help-urgent-please/168877 "2009-05-27T00:30:20Z")

</div>

Hi all, Help needed urgently Example: this could be the string. Kid games need to be both fun and educational. Aimed at ages pre-K through middle school, safe environment to discover their abilities and learn new sk…

---

## [Ruby and MySql](https://www.ruby-forum.com/t/ruby-and-mysql/168871)

<div class="topic-metadata">

**Author:** [@wsdickerson](https://www.ruby-forum.com/u/wsdickerson)\
**Replies:** 3\
**Last updated:** [May 27, 2009, 12:23am UTC](https://www.ruby-forum.com/t/ruby-and-mysql/168871 "2009-05-27T00:23:25Z")

</div>

Hi there - new to RoR but very excited about it indeed - I have just manged to install everything. However, when I browse to http://localhost:3000/ then click the “About your applicationâ€™s environment” - from the co…

---

## [Auto complete onclick](https://www.ruby-forum.com/t/auto-complete-onclick/168793)

<div class="topic-metadata">

**Author:** [@bartolome](https://www.ruby-forum.com/u/bartolome)\
**Replies:** 1\
**Last updated:** [May 26, 2009, 11:55pm UTC](https://www.ruby-forum.com/t/auto-complete-onclick/168793 "2009-05-26T23:55:54Z")

</div>

I’d like to know how I can put the id in a field when the user clicks on an autocomplete item. I have a field with autocomplete where I wanna show the name of the user but save on the database the id. My code is the …

---

## [I need support it is urgent](https://www.ruby-forum.com/t/i-need-support-it-is-urgent/168833)

<div class="topic-metadata">

**Author:** [@railsrao](https://www.ruby-forum.com/u/railsrao)\
**Replies:** 1\
**Last updated:** [May 26, 2009, 11:25pm UTC](https://www.ruby-forum.com/t/i-need-support-it-is-urgent/168833 "2009-05-26T23:25:24Z")

</div>

Hi every one I need help , i have a application of http://www.projectlaika.org/ i need to store a xls file extension please provide how to do make a list of steps if possible and i hope to get reply as soon as possibl…

---

## [Duplicate joins when combining scopes and :include](https://www.ruby-forum.com/t/duplicate-joins-when-combining-scopes-and-include/168874)

<div class="topic-metadata">

**Author:** [@JSSS\_nas\_Tryggvi\_J](https://www.ruby-forum.com/u/JSSS_nas_Tryggvi_J)\
**Replies:** 0\
**Last updated:** [May 26, 2009, 11:21pm UTC](https://www.ruby-forum.com/t/duplicate-joins-when-combining-scopes-and-include/168874 "2009-05-26T23:21:18Z")

</div>

Hi, I have an app using Rails 2.3.2 that chains together multiple scopes with joins and conditions on different tables. When I add :include to the finders that use these scopes, I get an Mysql::Error saying Not uniqu…

---

## [Alias\_method\_chain :process](https://www.ruby-forum.com/t/alias-method-chain-process/168861)

<div class="topic-metadata">

**Author:** [@jay](https://www.ruby-forum.com/u/jay)\
**Replies:** 1\
**Last updated:** [May 26, 2009, 11:20pm UTC](https://www.ruby-forum.com/t/alias-method-chain-process/168861 "2009-05-26T23:20:43Z")

</div>

Hi, I’m trying to upgrade to rails 2.3.2 and need a little help figuring something out. Our app uses the plugin asserts\_valid\_asset to test the welformedness of HTML that is generated. This plugin extends test::unit…

---

## [Date\_select validate all fields selected](https://www.ruby-forum.com/t/date-select-validate-all-fields-selected/168873)

<div class="topic-metadata">

**Author:** [@S\_thief\_S](https://www.ruby-forum.com/u/S_thief_S)\
**Replies:** 0\
**Last updated:** [May 26, 2009, 11:15pm UTC](https://www.ruby-forum.com/t/date-select-validate-all-fields-selected/168873 "2009-05-26T23:15:26Z")

</div>

Hi, date\_select seems to behave rather strangely if :prompt =\> true or :empty =\> true and the user does not select all fields. It seems that by the time the birth\_date field gets to validation, its filled with a Date…

---

## [Library for URL parameters adding, removing, or replacing?](https://www.ruby-forum.com/t/library-for-url-parameters-adding-removing-or-replacing/168862)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 1\
**Last updated:** [May 26, 2009, 10:45pm UTC](https://www.ruby-forum.com/t/library-for-url-parameters-adding-removing-or-replacing/168862 "2009-05-26T22:45:29Z")

</div>

i think PHP doesn’t have such simple functions yet… does Ruby have it? if in PHP, when we add a param to the URL $redirectURL = $printPageURL . “?mode=1”; it works if $printPageURL is “http://www.somesite.com/print.…

---

## [IRB fails to call some shell commands only on Windows](https://www.ruby-forum.com/t/irb-fails-to-call-some-shell-commands-only-on-windows/168304)

<div class="topic-metadata">

**Author:** [@umuro](https://www.ruby-forum.com/u/umuro)\
**Replies:** 7\
**Last updated:** [May 26, 2009, 9:53pm UTC](https://www.ruby-forum.com/t/irb-fails-to-call-some-shell-commands-only-on-windows/168304 "2009-05-26T21:53:13Z")

</div>

http://conceptspace.wikidot.com/forum/t-154517/rails101-getting-started-with-rad-ruby-on-rails#post-483414 On windwos, we could not find a way to execute gem --version on windows. The weird thing is this is happening…

---

## [CAn u please tell wats the prob in runnning my project?](https://www.ruby-forum.com/t/can-u-please-tell-wats-the-prob-in-runnning-my-project/168742)

<div class="topic-metadata">

**Author:** [@gmgmgm](https://www.ruby-forum.com/u/gmgmgm)\
**Replies:** 2\
**Last updated:** [May 26, 2009, 9:49pm UTC](https://www.ruby-forum.com/t/can-u-please-tell-wats-the-prob-in-runnning-my-project/168742 "2009-05-26T21:49:43Z")

</div>

\[~/kallori\]# rake db:migrate (in /home/gm/kallori) no such file to load – hmac-sha1 /usr/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in gem\_original\_require' /usr/lib/ruby/site\_ruby/1.8/rubygems/custom\_requi…

---

## [Capitalize first letter of each word](https://www.ruby-forum.com/t/capitalize-first-letter-of-each-word/168863)

<div class="topic-metadata">

**Author:** [@JannaB](https://www.ruby-forum.com/u/JannaB)\
**Replies:** 4\
**Last updated:** [May 26, 2009, 9:35pm UTC](https://www.ruby-forum.com/t/capitalize-first-letter-of-each-word/168863 "2009-05-26T21:35:38Z")

</div>

I am trying to capitalize first letter of each word in a string of words, which is in a given string. I see there is a reference to this at: which states to add two method to string class to capitalize first letter …

---

## [Memcache for variables](https://www.ruby-forum.com/t/memcache-for-variables/168835)

<div class="topic-metadata">

**Author:** [@wakathane](https://www.ruby-forum.com/u/wakathane)\
**Replies:** 2\
**Last updated:** [May 26, 2009, 8:35pm UTC](https://www.ruby-forum.com/t/memcache-for-variables/168835 "2009-05-26T20:35:46Z")

</div>

hey, for performance reasons i want to cache (template) variables using memcache, making access to data easy in templates by using a simple syntax like \<%=users(2).name%\>. this actually should tell the view to load t…

---

## [Manual access to session data outside of request?](https://www.ruby-forum.com/t/manual-access-to-session-data-outside-of-request/165989)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 11\
**Last updated:** [May 26, 2009, 7:58pm UTC](https://www.ruby-forum.com/t/manual-access-to-session-data-outside-of-request/165989 "2009-05-26T19:58:30Z")

</div>

So, given a sessionID, I have need to read and write the session stored information ‘manually’, from outside an actual Rails request/controller. Readers, I know your first response may be to tell me I don’t really wa…

---

## [Can't access http://local:3000/projectName/](https://www.ruby-forum.com/t/cant-access-http-local-3000-projectname/168169)

<div class="topic-metadata">

**Author:** [@westonc](https://www.ruby-forum.com/u/westonc)\
**Replies:** 3\
**Last updated:** [May 26, 2009, 7:35pm UTC](https://www.ruby-forum.com/t/cant-access-http-local-3000-projectname/168169 "2009-05-26T19:35:14Z")

</div>

Hey, I’m new to RoR and have been having trouble viewing/testing my project. I’m working on Windows Vista. After running the: “ruby script/server” command and navigating through Firefox to http://local:3000/projectNa…

---

## [Local RAILS/RUBY connections (HUDSON VALLEY NY)? - repost](https://www.ruby-forum.com/t/local-rails-ruby-connections-hudson-valley-ny-repost/168855)

<div class="topic-metadata">

**Author:** [@agilehack](https://www.ruby-forum.com/u/agilehack)\
**Replies:** 0\
**Last updated:** [May 26, 2009, 7:20pm UTC](https://www.ruby-forum.com/t/local-rails-ruby-connections-hudson-valley-ny-repost/168855 "2009-05-26T19:20:01Z")

</div>

Anyone from this group in or around Hudson Valley NY? Looking for some local connections or groups to learn with and from. (thanks to Marnen Laibow-Koser for his techvalleyrb suggestion)

---

## [Button\_to\_remote syntax](https://www.ruby-forum.com/t/button-to-remote-syntax/168850)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 2\
**Last updated:** [May 26, 2009, 7:18pm UTC](https://www.ruby-forum.com/t/button-to-remote-syntax/168850 "2009-05-26T19:18:09Z")

</div>

Hey I’m trying to make a button\_to\_remote that also has an associated style. It works fine as a button\_to: \<%= button\_to “Paid”, has\_paid\_event\_booking\_path(booking, booking.event), :method =\> :post, :style =\> “bac…

---

## [Local RAILS/RUBY connections?](https://www.ruby-forum.com/t/local-rails-ruby-connections/168854)

<div class="topic-metadata">

**Author:** [@agilehack](https://www.ruby-forum.com/u/agilehack)\
**Replies:** 2\
**Last updated:** [May 26, 2009, 6:43pm UTC](https://www.ruby-forum.com/t/local-rails-ruby-connections/168854 "2009-05-26T18:43:21Z")

</div>

Anyone from this group in or around Hudson Valley NY? Looking for some local connections or groups to learn with and from.

---

## [ID not primary key with not unique values](https://www.ruby-forum.com/t/id-not-primary-key-with-not-unique-values/168853)

<div class="topic-metadata">

**Author:** [@pepe](https://www.ruby-forum.com/u/pepe)\
**Replies:** 2\
**Last updated:** [May 26, 2009, 6:21pm UTC](https://www.ruby-forum.com/t/id-not-primary-key-with-not-unique-values/168853 "2009-05-26T18:21:17Z")

</div>

Sorry for the re-post. Nobody has even answered “no, can’t do”. I have an ID column in a legacy table of type STRING and could contain not unique values. Is there a way of disabling the convention of ID being the prim…

---

## [Attachment\_fu thumbnail not created](https://www.ruby-forum.com/t/attachment-fu-thumbnail-not-created/91425)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 13\
**Last updated:** [May 26, 2009, 4:29pm UTC](https://www.ruby-forum.com/t/attachment-fu-thumbnail-not-created/91425 "2009-05-26T16:29:51Z")

</div>

I followed the instructions on Mike C.'s weblog and everything works perfectly except the thumbnail column in my DB is alwas NULL. I’m using S3 as my storage system. Anyone else having this issue with thumbnails? has…

---

## [Rspec to xhr](https://www.ruby-forum.com/t/rspec-to-xhr/168838)

<div class="topic-metadata">

**Author:** [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Replies:** 0\
**Last updated:** [May 26, 2009, 3:55pm UTC](https://www.ruby-forum.com/t/rspec-to-xhr/168838 "2009-05-26T15:55:05Z")

</div>

when i want to test an ajax action, it always can’t passed. The action code is: POST /posts/:id/comments def create @comment = @post.comments.build(params\[:comment\]) if @comment.save flash\[:notice\] = 'Comment was…

---

## [Rails.cache.fetch("Survey.all") {Survey.all} | Problem only Hash returned, not objects,... nil.incl](https://www.ruby-forum.com/t/rails-cache-fetch-survey-all-survey-all-problem-only-hash-returned-not-objects-nil-incl/168834)

<div class="topic-metadata">

**Author:** [@rafael](https://www.ruby-forum.com/u/rafael)\
**Replies:** 0\
**Last updated:** [May 26, 2009, 3:15pm UTC](https://www.ruby-forum.com/t/rails-cache-fetch-survey-all-survey-all-problem-only-hash-returned-not-objects-nil-incl/168834 "2009-05-26T15:15:40Z")

</div>

Hello, does anybody know, how to get objects from the returned Custom Cache? Actually, everything comes back, but is only a Hash, it seems… #\<Survey id: 11, uid: “006CC623A9B”, targeted: “for\_me”, name: “ohjlj”, desc…

---

## [Installation Problem](https://www.ruby-forum.com/t/installation-problem/168831)

<div class="topic-metadata">

**Author:** [@sushrut](https://www.ruby-forum.com/u/sushrut)\
**Replies:** 1\
**Last updated:** [May 26, 2009, 3:10pm UTC](https://www.ruby-forum.com/t/installation-problem/168831 "2009-05-26T15:10:58Z")

</div>

At the time of installation of rails 2.3.2 it gives an error ERROR: While executing gem … (Gem::RemoteFetcher::FetchError) SocketError reading http://gems.rubyforge.org/gems/rake-0.8.7.gem actually i want to install…

---

## [Installation Problem](https://www.ruby-forum.com/t/installation-problem/168830)

<div class="topic-metadata">

**Author:** [@sushrut](https://www.ruby-forum.com/u/sushrut)\
**Replies:** 2\
**Last updated:** [May 26, 2009, 3:04pm UTC](https://www.ruby-forum.com/t/installation-problem/168830 "2009-05-26T15:04:51Z")

</div>

At the time of installation of rails 2.3.2 it gives an error ERROR: While executing gem … (Gem::RemoteFetcher::FetchError) SocketError reading http://gems.rubyforge.org/gems/rake-0.8.7.gem actually i want to install…

---

## [Strange caching? problem](https://www.ruby-forum.com/t/strange-caching-problem/168827)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 10\
**Last updated:** [May 26, 2009, 2:52pm UTC](https://www.ruby-forum.com/t/strange-caching-problem/168827 "2009-05-26T14:52:10Z")

</div>

I got up this morning to discover a strange occurrence on my blog server. My blog http://talklikeaduck.denhaven2.com/ seems to be serving up a blank page for JUST the landing page. The admin pages are fine, if I ente…

---

## [How to save german date text\_field in database](https://www.ruby-forum.com/t/how-to-save-german-date-text-field-in-database/168808)

<div class="topic-metadata">

**Author:** [@pink-ink](https://www.ruby-forum.com/u/pink-ink)\
**Replies:** 5\
**Last updated:** [May 26, 2009, 2:04pm UTC](https://www.ruby-forum.com/t/how-to-save-german-date-text-field-in-database/168808 "2009-05-26T14:04:06Z")

</div>

Hi Ruby Comunity! To display a database stored date like %Y-%m-%d into a text\_field with german format %d.%m.Y. is not so difficult. For conversion you can do something like \<%= f.text\_field :date\_test, :value =\> @…

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

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