# Latest

**URL:** https://www.ruby-forum.com/latest.md?page=578

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

---

## [Hash#update - need tweaks](https://www.ruby-forum.com/t/hash-update-need-tweaks/245840)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [July 19, 2013, 9:27pm UTC](https://www.ruby-forum.com/t/hash-update-need-tweaks/245840 "2013-07-19T21:27:58Z")

</div>

I am in a situation,where I have to the below kind of operations. h1 = {:url\_id =\> 1, :used =\> 10} h2 = {:url\_id =\> 1, :used =\> 5} h1.update(h2) {|k,old,new| old + new } =\> {:url\_id=\>2, :used=\>15} now the above code …

---

## [Best practices for capybara's features spec?](https://www.ruby-forum.com/t/best-practices-for-capybaras-features-spec/235856)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [July 19, 2013, 8:19pm UTC](https://www.ruby-forum.com/t/best-practices-for-capybaras-features-spec/235856 "2013-07-19T20:19:48Z")

</div>

Hi, I realy like to use capybara’s features spec but I have some questions about the organisation : How should I group the features specs? For the moment, I try to group by controllers. For example, I can have a f…

---

## [\`rescue in rbuf\_fill': Timeout: :Error (Timeout::Error) - selenium-webdriver](https://www.ruby-forum.com/t/rescue-in-rbuf-fill-timeout-error-timeout-error-selenium-webdriver/235278)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 4\
**Last updated:** [July 19, 2013, 8:08pm UTC](https://www.ruby-forum.com/t/rescue-in-rbuf-fill-timeout-error-timeout-error-selenium-webdriver/235278 "2013-07-19T20:08:49Z")

</div>

I am continuously getting an irritating error : C:\\Documents and Settings\\rakshiar\\My Documents\\userdata\\Ruby\\Scripts\>So.rb C:/Ruby193/lib/ruby/1.9.1/net/protocol.rb:146:in rescue in rbuf\_fill': Timeout: :Error (Timeo…

---

## [Refactor a view by a decorator, a presenter, an helper or something else?](https://www.ruby-forum.com/t/refactor-a-view-by-a-decorator-a-presenter-an-helper-or-something-else/245860)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [July 19, 2013, 7:28pm UTC](https://www.ruby-forum.com/t/refactor-a-view-by-a-decorator-a-presenter-an-helper-or-something-else/245860 "2013-07-19T19:28:57Z")

</div>

Hi, In a view, I have this code : \<% MeasureUnitDecorator.all.each do |mu| %\> \<p\> \<b\>Dimensions in \<%= mu.title %\> :\</b\> \<%= painting.convert(:width, mu) %\> x \<%= painting.convert(:height, mu) %\> \<% if painti…

---

## [Re: wav file source question](https://www.ruby-forum.com/t/re-wav-file-source-question/245867)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [July 19, 2013, 6:48pm UTC](https://www.ruby-forum.com/t/re-wav-file-source-question/245867 "2013-07-19T18:48:39Z")

</div>

I don’t know how to post the answer to the discussion group correctly so I just sent this to you. I got the same errors. I can write a wav file, I can play the wav file using any other audio player but GNUradio “wav s…

---

## [Info about original request URI in access phase](https://www.ruby-forum.com/t/info-about-original-request-uri-in-access-phase/245838)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [July 19, 2013, 6:32pm UTC](https://www.ruby-forum.com/t/info-about-original-request-uri-in-access-phase/245838 "2013-07-19T18:32:17Z")

</div>

Hi, I am writing a handler that checks a request signature during the access phase. When there is URI rewriting, the URI the client used when signing does not match the URI the handler sees when checking the signatur…

---

## [Hostname in Root directive](https://www.ruby-forum.com/t/hostname-in-root-directive/235851)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [July 19, 2013, 5:42pm UTC](https://www.ruby-forum.com/t/hostname-in-root-directive/235851 "2013-07-19T17:42:37Z")

</div>

I know this may not be safe, but how can I set the hostname in the root directive location /static { ie; root /www/$hostname/static; }

---

## [Laying out the flow of an application - where to start?](https://www.ruby-forum.com/t/laying-out-the-flow-of-an-application-where-to-start/235821)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 7\
**Last updated:** [July 19, 2013, 5:41pm UTC](https://www.ruby-forum.com/t/laying-out-the-flow-of-an-application-where-to-start/235821 "2013-07-19T17:41:30Z")

</div>

Hi all, first post! I have a question regarding where to start with a particular app I’m building. Hoping someone can set me on the right path. The scenario is pretty straight forward. This is the hierarchy of info: S…

---

## [GRC Start Up Frozen](https://www.ruby-forum.com/t/grc-start-up-frozen/245865)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [July 19, 2013, 4:56pm UTC](https://www.ruby-forum.com/t/grc-start-up-frozen/245865 "2013-07-19T16:56:26Z")

</div>

Hey guys, On Ubuntu 12.10 yesterday I was compiling some small pieces of code in terminal for syntax debugging, installing the files, and then testing functionality in grc. So the last thing I did was I install what …

---

## [Need to help to get data from bellow syntax](https://www.ruby-forum.com/t/need-to-help-to-get-data-from-bellow-syntax/235850)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [July 19, 2013, 4:50pm UTC](https://www.ruby-forum.com/t/need-to-help-to-get-data-from-bellow-syntax/235850 "2013-07-19T16:50:00Z")

</div>

Hi I need a help to read data from bellow syntax \[{:name=\>“value1”}, {:name=\>“Value2”}\] so its wiill be value1 valu2 but dont understand how to get that. any help and explanation will be really helpful Thanks

---

## [Consiglio webhosting](https://www.ruby-forum.com/t/consiglio-webhosting/190104)

<div class="topic-metadata">

**Author:** [@softwarewin](https://www.ruby-forum.com/u/softwarewin)\
**Replies:** 18\
**Last updated:** [July 19, 2013, 3:29pm UTC](https://www.ruby-forum.com/t/consiglio-webhosting/190104 "2013-07-19T15:29:07Z")

</div>

Salve ragazzi, la mia ROR application gira su server bluehost, negli ultimi giorni sta andando veramente piano e il supporto mi dice che devo ottimizzare il DB, gli script…etc. Il fatto Ã¨ che negli ultimi giorni non…

---

## [Ajax Search](https://www.ruby-forum.com/t/ajax-search/235843)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [July 19, 2013, 3:12pm UTC](https://www.ruby-forum.com/t/ajax-search/235843 "2013-07-19T15:12:57Z")

</div>

Hello All, I am using Kaminari gem for pagination. I want to do a ajax search on the same page of the data in the table which is a list of images with names. Can anyone suggest anything ? Thanks, Avi

---

## [How to get username](https://www.ruby-forum.com/t/how-to-get-username/245814)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [July 19, 2013, 3:00pm UTC](https://www.ruby-forum.com/t/how-to-get-username/245814 "2013-07-19T15:00:40Z")

</div>

Hi , i have a class “members” it has memberid,firstname,lastname and email and there is another class “risks” in tht memberid is referenced and storing the database table,now i want to show in risks report member nam…

---

## [Preferred way to start creating an app](https://www.ruby-forum.com/t/preferred-way-to-start-creating-an-app/245844)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [July 19, 2013, 2:49pm UTC](https://www.ruby-forum.com/t/preferred-way-to-start-creating-an-app/245844 "2013-07-19T14:49:34Z")

</div>

I think a lot of guys here use rails with jruby. How do you create an application? Simply with jruby -S rails new myapp -m http://jruby.org or rails new myapp -m https://raw.github.com/RailsApps/rails-composer/mast…

---

## [Reusing functional tests with rails 4](https://www.ruby-forum.com/t/reusing-functional-tests-with-rails-4/235848)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [July 19, 2013, 2:47pm UTC](https://www.ruby-forum.com/t/reusing-functional-tests-with-rails-4/235848 "2013-07-19T14:47:58Z")

</div>

With rails 4, I have this test for one controller: class Merchant::RegistrationsControllerTest \< ActionController::TestCase test “should create new registration” do user = FactoryGirl.build(:merchant\_user) #rest of t…

---

## [EXSLT func:function not registered for XSLT filter module](https://www.ruby-forum.com/t/exslt-func-function-not-registered-for-xslt-filter-module/235760)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [July 19, 2013, 2:04pm UTC](https://www.ruby-forum.com/t/exslt-func-function-not-registered-for-xslt-filter-module/235760 "2013-07-19T14:04:00Z")

</div>

Hi, I’m trying to use EXSLT’s func:function with nginx’s xslt filter module. The effect I think I’m seeing is that my functions are seemingly ignored. I made a test XSLT stylesheet: iona% cat xsl/fish.xsl \<?xml vers…

---

## [Installing RVM Problems](https://www.ruby-forum.com/t/installing-rvm-problems/245806)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 9\
**Last updated:** [July 19, 2013, 1:52pm UTC](https://www.ruby-forum.com/t/installing-rvm-problems/245806 "2013-07-19T13:52:54Z")

</div>

How do I update my zsh if I am getting the error message, ” WARNING: In case of using Zsh, version 4.3.12 / 5.0.0+ is recommended, you have 4.3.11, errors to be expected.” when installing RVM? I am new to developing w…

---

## [How to assert the value of an input element with assert\_select (Rails 4)](https://www.ruby-forum.com/t/how-to-assert-the-value-of-an-input-element-with-assert-select-rails-4/235846)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [July 19, 2013, 1:44pm UTC](https://www.ruby-forum.com/t/how-to-assert-the-value-of-an-input-element-with-assert-select-rails-4/235846 "2013-07-19T13:44:43Z")

</div>

Given this HTML in the view: Recover Pasword How do I select the value of the button with assert\_select? I try assert\_select ‘form input\[type=submit\]’, “Send Reset Instructions” b…

---

## [Url\_helpers in /lib](https://www.ruby-forum.com/t/url-helpers-in-lib/235847)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [July 19, 2013, 1:17pm UTC](https://www.ruby-forum.com/t/url-helpers-in-lib/235847 "2013-07-19T13:17:15Z")

</div>

Hi, I’m trying to generate some static feeds using a script in /lib that I will later call from a sidekiq worker and I need to access the URL helpers from my library, how can I do it? What I tried so far is includin…

---

## [Nginx-reverse-proxy-proxy-cache-inside-if-block-possible](https://www.ruby-forum.com/t/nginx-reverse-proxy-proxy-cache-inside-if-block-possible/235842)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [July 19, 2013, 10:26am UTC](https://www.ruby-forum.com/t/nginx-reverse-proxy-proxy-cache-inside-if-block-possible/235842 "2013-07-19T10:26:40Z")

</div>

Hi I am running a BBS server(nginx). And now I want to setup a cache server (using nginx)in front of the BBS server to cache the pic . The URL for the pic is something like this: http://www.mysite.com/forum.php?mo…

---

## [TryRuby Popup Problems](https://www.ruby-forum.com/t/tryruby-popup-problems/235841)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [July 19, 2013, 9:36am UTC](https://www.ruby-forum.com/t/tryruby-popup-problems/235841 "2013-07-19T09:36:25Z")

</div>

Hello there, my name is Jay. I wanted to introduce myself because I figure I will be spending a lot of time here in the future as I just decided to start learning Ruby with Michael H.'s online Rails Tutorial. He sugge…

---

## [Iteration anomalu](https://www.ruby-forum.com/t/iteration-anomalu/245787)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 4\
**Last updated:** [July 19, 2013, 9:31am UTC](https://www.ruby-forum.com/t/iteration-anomalu/245787 "2013-07-19T09:31:09Z")

</div>

Surely this is a FAQ but I can’t figure out how I would search for an explanation for this behavior. In short, this code a = \[\[1,2,3\], \[4,5,6\], \[7,8,9\]\] for x in a do print x, “\\n” end for i in \[0…a.length\] do pri…

---

## [Question about Pre-cog Heart Beat](https://www.ruby-forum.com/t/question-about-pre-cog-heart-beat/245813)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [July 19, 2013, 6:15am UTC](https://www.ruby-forum.com/t/question-about-pre-cog-heart-beat/245813 "2013-07-19T06:15:25Z")

</div>

Hello I am trying to send low rate data through pre-cog simple trx example. I have difficulty understanding the function of the heart beat block. If I decrease the rate (period) of the heart beat block, I will be ab…

---

## [\[Assigned\] valgrind error in a readline test](https://www.ruby-forum.com/t/assigned-valgrind-error-in-a-readline-test/235837)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [July 19, 2013, 3:02am UTC](https://www.ruby-forum.com/t/assigned-valgrind-error-in-a-readline-test/235837 "2013-07-19T03:02:38Z")

</div>

Issue #8644 has been updated by kouji (Kouji T.). Category set to ext Status changed from Open to Assigned Assignee set to kouji (Kouji T.) Target version set to next minor Bug #8644: valgrind error in a readline t…

---

## [Student travel support](https://www.ruby-forum.com/t/student-travel-support/245822)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [July 19, 2013, 1:33am UTC](https://www.ruby-forum.com/t/student-travel-support/245822 "2013-07-19T01:33:51Z")

</div>

Once again, the National Science Foundation (NSF) is providing us with funding to help students travel to and from the conference. The application form to submit for funding is now live on the conference website: www…

---

## [Ngx\_openresty devel version 1.4.1.1 released](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-4-1-1-released/235839)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [July 19, 2013, 1:22am UTC](https://www.ruby-forum.com/t/ngx-openresty-devel-version-1-4-1-1-released/235839 "2013-07-19T01:22:10Z")

</div>

Hello guys! I am glad to announce that the new development version of ngx\_openresty, 1.4.1.1, is now released: http://openresty.org/#Download This is the first release based on the Nginx 1.4.x stable series. Special…

---

## [Ruby mogilefs-client 3.7.0 released](https://www.ruby-forum.com/t/ruby-mogilefs-client-3-7-0-released/245845)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [July 19, 2013, 1:19am UTC](https://www.ruby-forum.com/t/ruby-mogilefs-client-3-7-0-released/245845 "2013-07-19T01:19:14Z")

</div>

A MogileFS client library for Ruby. MogileFS is an open source distributed filesystem, see: http://mogilefs.org/ for more details. This library allows any Ruby application to read, write and delete files in a Mogile…

---

## [Install RVM on Solaris](https://www.ruby-forum.com/t/install-rvm-on-solaris/235838)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 3\
**Last updated:** [July 19, 2013, 12:30am UTC](https://www.ruby-forum.com/t/install-rvm-on-solaris/235838 "2013-07-19T00:30:09Z")

</div>

I tried installing RVM on Solaris using command “\\curl -L https://get.rvm.io |bash -s stable --ruby”, But it failed saying “Error running ‘requirements\_solaris\_libs\_install developer/library/lint’, please read /hom…

---

## [Webapps config doesn't work because of overridden by nginx](https://www.ruby-forum.com/t/webapps-config-doesnt-work-because-of-overridden-by-nginx/245829)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [July 19, 2013, 12:20am UTC](https://www.ruby-forum.com/t/webapps-config-doesnt-work-because-of-overridden-by-nginx/245829 "2013-07-19T00:20:48Z")

</div>

Hi All, I’ve some problem when using reverse proxy, my configuration are like this : I think the configuration are correct, and the site are running well. But, if I want to access some subdomain (eg. techno.domain.t…

---

## [Wrong number of arguments calling \`exec\_insert\`](https://www.ruby-forum.com/t/wrong-number-of-arguments-calling-exec-insert/245850)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [July 18, 2013, 8:57pm UTC](https://www.ruby-forum.com/t/wrong-number-of-arguments-calling-exec-insert/245850 "2013-07-18T20:57:29Z")

</div>

…this is the error I have when I run db:migrate under jruby 1.7.4 and rails 4. Unable to use rails.

[Previous page](https://www.ruby-forum.com/latest.md?page=577)

[Next page](https://www.ruby-forum.com/latest.md?page=579)
