[Rails] Re: Issue in OR condition

2012-07-05 Thread harshad
Hi, I solve my isseu where(:$or => [{:target_device_os_max_ver => appver.to_s},{:target_device_os_min_ver => appver.to_s}]) On Friday, July 6, 2012 11:05:03 AM UTC+5:30, harshad wrote: > > Hi, > > I have a issue in OR confition in where clause. Use rails 3 + mongoDB > (Mongoid). Please send

Re: [Rails] Issue in OR condition

2012-07-05 Thread Pravin Mishra
*where(*:target_device_os_max_ver => appver.to_s*).or(*:target_device_os_min_ver => appver.to_s*)* On 6 July 2012 11:05, harshad wrote: > Hi, > > I have a issue in OR confition in where clause. Use rails 3 + mongoDB > (Mongoid). Please send me any solutions asap. > I have a condition: where({:

[Rails] Issue in OR condition

2012-07-05 Thread harshad
Hi, I have a issue in OR confition in where clause. Use rails 3 + mongoDB (Mongoid). Please send me any solutions asap. I have a condition: where({:target_device_os_max_ver => appver.to_s} || {:target_device_os_min_ver => appver.to_s}) Thanks -- You received this message because you are sub

[Rails] Email Marketing Software Offer Surprise in 2012

2012-07-05 Thread liu wen
Email marketing- an effective method for businessmen to communicate with current customers,get potential customers. An email marketing tool that was created to boost email marketing campaign and grow with your business. More features of iKode newsletter software include: Tracking - See how many me

[Rails] Re: Creating a new record doesnt update the browser view

2012-07-05 Thread cyber c.
>Now run the app, bring up the index and note the count shown (what is >it and how many records do you see), add a record and then show the >index again. Does the count change? Post the log for that complete >cycle. The count shown is old , doesnt include the newly created one. Started GET "/

Re: [Rails] Re: Creating a new record doesnt update the browser view

2012-07-05 Thread Colin Law
On 5 July 2012 21:37, cyber c. wrote: buggy. >>> >>> >>> >>> Started POST "/trials" for 127.0.0.1 at Thu Jul 05 10:26:19 -0700 2012 >>>(1.2ms) commit transaction >>> Completed 200 OK in 39ms (Views: 37.9ms | ActiveRecord: 0.2ms) >>> >>> >>> >>> Started GET "/assets/trials.js?body=1" for

[Rails] Re: Creating a new record doesnt update the browser view

2012-07-05 Thread cyber c.
>>> buggy. >> >> >> >> Started POST "/trials" for 127.0.0.1 at Thu Jul 05 10:26:19 -0700 2012 >>(1.2ms) commit transaction >> Completed 200 OK in 39ms (Views: 37.9ms | ActiveRecord: 0.2ms) >> >> >> >> Started GET "/assets/trials.js?body=1" for 127.0.0.1 at Thu Jul 05 >> 10:26:45 -0700 2012 >>

[Rails] [JOBS] Mid-High Level Web Developer @ Magian Media Studio - CBD On-site Melbourne

2012-07-05 Thread magian
Magian Design Studio is an interactive digital media production studio, working with some of the world's most prestigious museums, science centres, aquariums and zoos. As well as producing multimedia kiosk exhibits for these institutions, we have developed our own server software systems for th

[Rails] Ruby on Rails Developer jobs for fresher or Intern developer

2012-07-05 Thread yasir adnan
Hi, Currently I'm looking for a job for remote ror developer. Any one can help me about this matter. Thanks -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyon

[Rails] Deploying a rails 3.2 app

2012-07-05 Thread Louis Davin
Hello there, I have been working in a startup for a few weeks now, and I am responsible for setting up the production environment and for "strengthening" the product (a rails app). By the way I've started reading "Deploying rails" from pragprog. The deployment of the app will be done through

Re: [Rails] Re: Creating a new record doesnt update the browser view

2012-07-05 Thread Colin Law
On 5 July 2012 18:32, cyber c. wrote: >>> Hi Colin, > >>Please remember to quote the previous post when replying, I have just >>had to look back at the previous email to find what I suggested last >>time. This is a mailing list not a forum, though you may be accessing >>it via a forum style inter

[Rails] Re: a hands-on tutoring needed

2012-07-05 Thread sehrguey o.
thank you, Walter, it worked after I had corrected the shameful typo and replaced 'name' with 'title'further along the line. I feel embarrassed and obliged or, maybe, vice verse. gratefully yours` sehrguey -- Posted via http://www.ruby-forum.com/. -- You received this message because you a

[Rails] Proxy Error

2012-07-05 Thread Gurdipe Dosanjh
Hi All, I have just started to support a rails application and during the day I have to restart the apache proxy becuase I get proxy errors. Is there any good guides I can look at that will help my understand apache and the apache proxy, how to configure it so that this error is removed? Kind

Re: [Rails] Routing error for stylesheets in rails 3.0

2012-07-05 Thread Shalini Sah
Hi, It was some mistake on my part. I have resolved it. Thanks & Regards. On Thu, Jul 5, 2012 at 6:37 PM, CavalryJim wrote: > Do you have a ss.css file in your public/stylesheets folder? If not, that > is the problem. > > -- > You received this message because you are subscribed to the Google

[Rails] Re: Creating a new record doesnt update the browser view

2012-07-05 Thread cyber c.
>> Hi Colin, >Please remember to quote the previous post when replying, I have just >had to look back at the previous email to find what I suggested last >time. This is a mailing list not a forum, though you may be accessing >it via a forum style interface. >> >>Thanks for the response . I have

Re: [Rails] Uninstall RoR

2012-07-05 Thread Colin Law
On 5 July 2012 17:45, Mandeep Kaur wrote: > On Thu, Jul 5, 2012 at 6:04 PM, Colin Law wrote: >> You said in the last post that the files no longer existed, though >> they still (wrongly) appeared when you used locate. Which files still >> exist? > > I think you misunderstood my mail. I am trying

Re: [Rails] Uninstall RoR

2012-07-05 Thread Mandeep Kaur
On Thu, Jul 5, 2012 at 6:04 PM, Colin Law wrote: > You said in the last post that the files no longer existed, though > they still (wrongly) appeared when you used locate. Which files still > exist? I think you misunderstood my mail. I am trying to explain that I tried to uninstall RoR using com

[Rails] Re: design of bulk UPSERT (aka MERGE): update_or_insert

2012-07-05 Thread Seamus Abshere
hey ff, You might want to take a look at https://github.com/seamusabshere/upsert - released same week you posted this. Best, Seamus -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to

Re: [Rails] table link

2012-07-05 Thread Oscar Del Ben
You need to use javascript for that. Try adding the onclick attribute on the td element. -- Oscar Del Ben Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Thursday, July 5, 2012 at 8:56 AM, Sebastian H. wrote: > Hey, > > how can i get an whole cell to be a link. > > my actual code

[Rails] table link

2012-07-05 Thread Sebastian H.
Hey, how can i get an whole cell to be a link. my actual code is: <% @alluser.each do |x| %> <%= link_to "#{x.name}", { :controller => 'pages', :action => 'berufsschule', :given_user => x.name} , :class => "btn btn-danger" %> <% end %> i want a whole table cell as link.. not only the text t

Re: [Rails] Routing error for stylesheets in rails 3.0

2012-07-05 Thread CavalryJim
Do you have a ss.css file in your public/stylesheets folder? If not, that is the problem. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/y8NX

[Rails] tests , assertion output value always <>

2012-07-05 Thread Erwin
no problem running my tests ( units , functionals ) but when assertion failed , I never see any assertion output value, it's always <> and expected also is <> i.e. : => 33: assert ability.can? :index, User 34: get :index 35: assert_response :success 36: assert_no

Re: [Rails] Uninstall RoR

2012-07-05 Thread Colin Law
On 5 July 2012 12:09, Mandeep Kaur wrote: > On Thu, Jul 5, 2012 at 4:25 PM, Colin Law wrote: > >> So the problem you have is that the locate command is showing files >> that no longer exist. That is nothing to do with RoR so this is not >> the place to ask about it. > > Actually, my main problem

Re: [Rails] Uninstall RoR

2012-07-05 Thread Mandeep Kaur
On Thu, Jul 5, 2012 at 4:25 PM, Colin Law wrote: > So the problem you have is that the locate command is showing files > that no longer exist. That is nothing to do with RoR so this is not > the place to ask about it. Actually, my main problem was to remove RoR completely (all versions). Where

Re: [Rails] Uninstall RoR

2012-07-05 Thread Colin Law
On 5 July 2012 11:43, Mandeep Kaur wrote: > On Thu, Jul 5, 2012 at 3:58 PM, Colin Law wrote: >> So it is not there then, gone. That is what you were trying to >> achieve is it not? Do you still have a problem? > > Yes while locating ruby it gives following result: > > $ locate ruby > /usr/lib/r

Re: [Rails] Uninstall RoR

2012-07-05 Thread Mandeep Kaur
On Thu, Jul 5, 2012 at 3:58 PM, Colin Law wrote: > So it is not there then, gone. That is what you were trying to > achieve is it not? Do you still have a problem? Yes while locating ruby it gives following result: $ locate ruby /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/handler/swiftipli

Re: [Rails] Uninstall RoR

2012-07-05 Thread Colin Law
On 5 July 2012 10:46, Mandeep Kaur wrote: > On Thu, Jul 5, 2012 at 3:06 PM, Colin Law wrote: >> /usr/bin/ruby is not a folder it is a file (the ruby command). What >> do you see if you type >> ls /usr/bin/ruby >> > > It gives as following: > > $ls /usr/bin/ruby > ls: cannot access /usr/bin/ruby:

Re: [Rails] Uninstall RoR

2012-07-05 Thread Mandeep Kaur
On Thu, Jul 5, 2012 at 3:06 PM, Colin Law wrote: > /usr/bin/ruby is not a folder it is a file (the ruby command). What > do you see if you type > ls /usr/bin/ruby > It gives as following: $ls /usr/bin/ruby ls: cannot access /usr/bin/ruby: No such file or directory Earlier I have remove /usr/bi

Re: [Rails] Uninstall RoR

2012-07-05 Thread Colin Law
On 5 July 2012 10:28, Mandeep Kaur wrote: > On Thu, Jul 5, 2012 at 2:40 PM, Colin Law wrote: >> On 5 July 2012 09:54, Mandeep Kaur wrote: >>> This means RoR is uninstalled properly or not. >> >> Yes I believe so, certainly the rails and ruby commands were not found. >> > > If it is uninstalled t

Re: [Rails] Uninstall RoR

2012-07-05 Thread Mandeep Kaur
On Thu, Jul 5, 2012 at 2:40 PM, Colin Law wrote: > On 5 July 2012 09:54, Mandeep Kaur wrote: >> This means RoR is uninstalled properly or not. > > Yes I believe so, certainly the rails and ruby commands were not found. > If it is uninstalled then why I'm getting result for $ locate ruby and when

Re: [Rails] Uninstall RoR

2012-07-05 Thread Colin Law
On 5 July 2012 09:54, Mandeep Kaur wrote: > This means RoR is uninstalled properly or not. Yes I believe so, certainly the rails and ruby commands were not found. Colin > > On Thu, Jul 5, 2012 at 1:14 PM, Colin Law wrote: >> On 5 July 2012 08:16, Mandeep Kaur wrote: >>> I want to uninstall Ro

Re: [Rails] Uninstall RoR

2012-07-05 Thread Mandeep Kaur
This means RoR is uninstalled properly or not. On Thu, Jul 5, 2012 at 1:14 PM, Colin Law wrote: > On 5 July 2012 08:16, Mandeep Kaur wrote: >> I want to uninstall RoR completely. And did as following: >> >> $ sudo apt-get remove ruby >> $ sudo gem uninstall rails >> $ sudo apt-get remove rubygem

Re: [Rails] Uninstall RoR

2012-07-05 Thread Colin Law
On 5 July 2012 08:16, Mandeep Kaur wrote: > I want to uninstall RoR completely. And did as following: > > $ sudo apt-get remove ruby > $ sudo gem uninstall rails > $ sudo apt-get remove rubygems > > According to these commands its uninstalled but while checking rails > and ruby version it shows fo

[Rails] Uninstall RoR

2012-07-05 Thread Mandeep Kaur
I want to uninstall RoR completely. And did as following: $ sudo apt-get remove ruby $ sudo gem uninstall rails $ sudo apt-get remove rubygems According to these commands its uninstalled but while checking rails and ruby version it shows following result: $ ruby -v Traceback (most recent call la