[Rails] Video Progress Bar Issue

2013-02-08 Thread RR
I am using ffmpeg to post video to my site in a modal. When I post I have a second pop up window opening where the video should be uploaded and processed while showing a progress bar. This enables my users to continue using the site while the video is processed and they will receive a notifica

[Rails] Re: does unicorn fork like phusion?

2013-02-08 Thread Sunny Juneja
I think these posts might help you Gitter: http://stackoverflow.com/questions/4113299/ruby-on-rails-server-options http://tomayko.com/writings/unicorn-is-unix On Thursday, 7 February 2013 12:34:26 UTC-8, Gitted wrote: > > Does unicorn work like phusion in that it automatically forks based on > tr

[Rails] Rails and Windows Integrated security

2013-02-08 Thread Espen Harlinn
Rails and Windows Integrated security - anybody know of a good guide on how to set this up? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-t

[Rails] looking for RoR "ecosystem" graphic

2013-02-08 Thread hhhh
D'oh! Somewhere, sometime in the past six months, I saw a nice graphic illustrating the RoR ecosystem --the executables and common work-flows-- and it might have been labeled something like that. But I didn't download it or keep a link. Yeah, I did the obvious Google image searches, no luck.

[Rails] Re: Devise and Ajax

2013-02-08 Thread Michael Mitchell
Can you show how you posted to the user model? On Tuesday, March 8, 2011 12:06:18 PM UTC-8, Ruby-Forum.com User wrote: > > Resolved. I had to post to user model, which triggers registration > controller. > > -- > Posted via http://www.ruby-forum.com/. > -- You received this message because yo

Re: [Rails] Add Objects to personal List

2013-02-08 Thread Colin Law
On 8 February 2013 21:37, Ryo Saeba wrote: > Hey there! > > I'm developing a Game Database where every User can Add Titles to the > list, for everyone to see (like imdb). But Also I want to add game > titles to a personal list. How Do I do that? > > So far everything is working fine. I can show th

[Rails] Add Objects to personal List

2013-02-08 Thread Ryo Saeba
Hey there! I'm developing a Game Database where every User can Add Titles to the list, for everyone to see (like imdb). But Also I want to add game titles to a personal list. How Do I do that? So far everything is working fine. I can show the details of each created game, now I only need an actio

[Rails] Re: Rails finder method efficiency question

2013-02-08 Thread Cris Shupp
Fred, Thank you. We tested what you gave =us with ActiveRecord logging to STDOUT and with this code: puts 'hi' e = WorkoutExercise.where(:exercise_id =>(params[:id])) puts "after" e.exists? puts "last one" We saw this: hi after Primary Key (15.0ms) SELECT cc.column_name

Re: [Rails] Re: does unicorn fork like phusion?

2013-02-08 Thread Johnneylee Rollins
I think puma just added in some new features along this line. ~Spaceghost On Fri, Feb 8, 2013 at 11:46 AM, S Ahmed wrote: > I see, so is phusion the only one that automatically grows to meet demand? > > > On Fri, Feb 8, 2013 at 2:27 AM, Frederick Cheung < > frederick.che...@gmail.com> wrote: >

[Rails] business days

2013-02-08 Thread Werner
I have a table with dates start => 2013-02-04 end => 2013-02-13 I can count all days: def self.business_days(start, end) ((start)..(end)).select {|d| (1..5).include?(d.wday) }.size end => 8..o.k. but we have two cweek(s) in the above ex. => first cweek 5 business days (Mo - Fr), second 3

[Rails] Re: Nested attributes (unknown attribute error)-overiding default foreign key referencing

2013-02-08 Thread poornima c.
Hi Colin Sorry for the typo error. My code has belongs_to and :foreign_key=>"request_id" . Still it throws this error. Looks like I have to use alias_attribute functionality to map asin_whitelist_request_id to request_id in my table. But am not sure about how to handle the queries. -- Posted

Re: [Rails] Re: does unicorn fork like phusion?

2013-02-08 Thread S Ahmed
I see, so is phusion the only one that automatically grows to meet demand? On Fri, Feb 8, 2013 at 2:27 AM, Frederick Cheung wrote: > > > On Friday, February 8, 2013 4:34:26 AM UTC+8, Gitted wrote: >> >> Does unicorn work like phusion in that it automatically forks based on >> traffic levels? >>

[Rails] [Jobs] Ruby Developer (m/f) in Germany

2013-02-08 Thread kelly@webcrowd
Dear Fellows, I hope you don't mind posting job offers on this mailing list. If you do, please drop us a line and we stop sending these exciting opportunities via your mailinglist. Webcrowd is a job and service network for internet professionals. We have been or we still are internet profess

[Rails] Re: easy question on GIT

2013-02-08 Thread pravin vaja
Hi, Use git commit -m 'comment' On Friday, 8 February 2013 05:37:56 UTC+5:30, Ruby-Forum.com User wrote: > > Hi Folks, > > I have a question unfortunately on the net didn't find a simple answer > to my simple question > > MY QUESTION > > if I have a commit for example > > commit 9da53d968e86

[Rails] Re: Associations

2013-02-08 Thread pravin vaja
Hi, You have to make player_id as foreign key in PlayerScore model and it will work. Regards, vajapravin On Friday, 8 February 2013 11:17:41 UTC+5:30, Sumit Srivastava wrote: > > Hi, > > I have a model PlayerScore with unique key as (dt, player_id). I have > create associations between Pla

[Rails] Re: Problem with many to many relationship

2013-02-08 Thread Linus Pettersson
Found the error... I have written t.belongs in one class instead of belongs_to Tired... Den fredagen den 8:e februari 2013 kl. 15:28:16 UTC+1 skrev Linus Pettersson: > > Hi > > I'm trying to create a many to many relationship between two models. > > A User can be associated with many Incid

[Rails] Problem with many to many relationship

2013-02-08 Thread Linus Pettersson
Hi I'm trying to create a many to many relationship between two models. A User can be associated with many Incidents and vice versa. class User < ActiveRecord::Base include ActiveModel::ForbiddenAttributesProtection has_many :incident_participants, foreign_key: "participant_id" has_many :

[Rails] How to Implement Instagram on Rails app

2013-02-08 Thread Samir
Hi, Can anybody help me out how to implement instagram on Rails app. i want get the Likes and comments given on a uploaded Pic via my app. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving

Re: [Rails] Nested attributes (unknown attribute error)-overiding default foreign key referencing

2013-02-08 Thread Colin Law
On 8 February 2013 11:00, poornima c. wrote: > Am getting the following error in ruby on rails: > ActiveRecord::UnknownAttributeError in AWRequestsController#new unknown > attribute: a_w_request_id. > > I have a form that is tied to two models. > > a_w_request.rb: > > class AWRequest set_prim

[Rails] Change helper to js/coffee

2013-02-08 Thread Werner
Hi.. I have: >. This returnes a class to alter the background-color, but only on reload. As the page is not submitted(ajax) on entry new values, I want to change this helper to a js/coffee function so if val 2 > val 1 the background color changes. How to approch that? Thanks for support W

[Rails] Nested attributes (unknown attribute error)-overiding default foreign key referencing

2013-02-08 Thread poornima c.
Am getting the following error in ruby on rails: ActiveRecord::UnknownAttributeError in AWRequestsController#new unknown attribute: a_w_request_id. I have a form that is tied to two models. a_w_request.rb: class AWRequest :destroy accepts_nested_attributes for :w_a_details, :allow_destroy

Re: [Rails] Associations

2013-02-08 Thread Colin Law
On 8 February 2013 05:47, Sumit Srivastava wrote: > Hi, > > I have a model PlayerScore with unique key as (dt, player_id). I have > create associations between Player model and PlayerScore model to display > the score on Player screen. Had it been just the score_id as the foreign_key > a simple

Re: [Rails] easy question on GIT

2013-02-08 Thread Colin Law
On 8 February 2013 02:13, Johnneylee Rollins wrote: > Also, if it's the previous commit you can use `git commit --amend` But I recommend only to amend the previous commit if you are certain that nothing has happened in between. For example if you have pushed to the master repository and then ame