[Rails] Rails Integrate with Webrtc

2014-12-08 Thread Parth S
Hi All, I need to implement video chat function in my rails application. Could anyone tell how will do that using Webrtc . -- 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,

[Rails] Strange behaviour with the create_xxx on has_one association

2014-12-08 Thread Man Vuong Ha Thanh
I have models like this: class User ActiveRecord::Base has_one :user_preference, dependent: :destroy end class UserPreference ActiveRecord::Base belongs_to :user end It works fine when I call this: $ user.create_user_preference (0.3ms) BEGIN User Load (0.9ms) SELECT users.* FROM

Re: [Rails] Rails Integrate with Webrtc

2014-12-08 Thread Vivek Sampara
I'd recommend you not to re-invent the wheel and use bbb or appear.in or talky On Mon, Dec 8, 2014 at 2:06 PM, Parth S parthisiva...@gmail.com wrote: Hi All, I need to implement video chat function in my rails application. Could anyone tell how will do that using Webrtc . -- You received

Re: [Rails] Strange behaviour with the create_xxx on has_one association

2014-12-08 Thread Vivek Sampara
This behavior is normal. When a record already exists for has_one, it deletes the previously existing record for database consistency ( has_many ) . It is a bit similar to has_and_belongs_to_many when you have User has_and_belongs_to_many categories. user.categories_ids = [4,5,6] #some array of

[Rails] Re: Strange behaviour with the create_xxx on has_one association

2014-12-08 Thread Frederick Cheung
On Monday, December 8, 2014 8:48:37 AM UTC, Man Vuong Ha Thanh wrote: But, if I call that method again, it will delete the `profile` record. $ user.create_user_preference (0.3ms) BEGIN User Load (0.8ms) SELECT users.* FROM users WHERE users. deleted_at IS NULL AND users.id = $1

Re: [Rails] Re: Strange behaviour with the create_xxx on has_one association

2014-12-08 Thread Vivek Sampara
The new one is obviously failing a validation on the user or user_preference . Check the object for any validation errors. On Mon, Dec 8, 2014 at 3:31 PM, Frederick Cheung frederick.che...@gmail.com wrote: On Monday, December 8, 2014 8:48:37 AM UTC, Man Vuong Ha Thanh wrote: But, if I call

[Rails] Re: Why does this test fail.

2014-12-08 Thread André Orvalho
Normally that problem occurs when you have a weird nesting or the naming of the controller compared to the test name is not correct as you can see in this 2 posts: http://stackoverflow.com/questions/14267506/keep-getting-controller-is-nil-error

[Rails] Re: No such file to load error

2014-12-08 Thread Gene Dela Cruz
I'm getting this error in my script. Can someone help me figure out what I'm missing on my code. Thank you. Gem::LoadError: Could not find selenium-client (= 0) amongst [actionmailer-2.3.8, actionpack-2.3.8, activerecord-2.3.8, activerecord-jdbc-adapter-0.9.6-java,

[Rails] Re: Why does this test fail.

2014-12-08 Thread Matt Jones
On Sunday, 7 December 2014 11:50:57 UTC-6, Roelof Wobben wrote: Hello, Sorry for the double post but on reddit nobody seems to have the solution. im following the agile web developement book but then with my own layout. Now am at chapter 9 where a shopping card is added. But as soon

[Rails] Re: Why does this test fail.

2014-12-08 Thread Roelof Wobben
Op maandag 8 december 2014 12:42:14 UTC+1 schreef Matt Jones: On Sunday, 7 December 2014 11:50:57 UTC-6, Roelof Wobben wrote: Hello, Sorry for the double post but on reddit nobody seems to have the solution. im following the agile web developement book but then with my own layout.

[Rails] No route matches {:action=show, :controller=carts} missing required keys: [:id]

2014-12-08 Thread Roelof Wobben
Hello, I follow the Agile Web development book. Now as a extra challenge I try to make the card visible on a seperate page. So I made this link : li%= link_to 'i class=fa fa-money/i Card'.html_safe, cart_path % /li But now I see the above error message. When I do card_path (:id) I see a

Re: [Rails] No route matches {:action=show, :controller=carts} missing required keys: [:id]

2014-12-08 Thread Vivek Sampara
What is the url you're using to show this on a separate page ? if its in the pattern of /cards/:id/something then you dont have to provide the card path as rails picks up @card object to build the path or you'll have to pass the card variable inside the path method. eg % @cards.each do |card| %

Re: [Rails] No route matches {:action=show, :controller=carts} missing required keys: [:id]

2014-12-08 Thread Roelof Wobben
Hello, It's is the form of /cards/:id I tried li%= link_to 'i class=fa fa-money/i Card'.html_safe, cart_path(cart) % /li li%= link_to 'i class=fa fa-money/i Card'.html_safe, cart_path(card) % /li but on both I see this message : undefined local variable or method `cart' undefined

Re: [Rails] No route matches {:action=show, :controller=carts} missing required keys: [:id]

2014-12-08 Thread Vivek Sampara
If you're on /cards/:id, then look at your cards_controller.rb , you'd see @card defined , hence you should use li%= link_to 'i class=fa fa-money/i Card'.html_safe, cart_path(@card) % /li But why would you goto to the show page ( /cards/:id/ ) when you're already on the page ? regarding the

Re: [Rails] Re: No such file to load error

2014-12-08 Thread Colin Law
On 8 December 2014 at 11:10, Gene Dela Cruz li...@ruby-forum.com wrote: I'm getting this error in my script. Can someone help me figure out what I'm missing on my code. Thank you. Gem::LoadError: Could not find selenium-client (= 0) amongst [actionmailer-2.3.8, actionpack-2.3.8,

Re: [Rails] No route matches {:action=show, :controller=carts} missing required keys: [:id]

2014-12-08 Thread Roelof Wobben
Im at the home page and I want to make a link to /card/:id According to rake routes I have to use cart_path. The carts route looks like this : class CartsController ApplicationController before_action :set_cart, only: [:show, :edit, :update, :destroy] def index @carts = Cart.all

Re: [Rails] Rails Integrate with Webrtc

2014-12-08 Thread Alexandre Calvão
I wrote this about it. http://www.toptal.com/ruby-on-rails/a-year-with-webrtc-lessons-in-startup-engineering === *Alexandre Mondaini Calvão* *Nossa recompensa se encontra no esforço e não no resultado. Um esforço total é uma vitória completa*. [Ghandi] 2014-12-08 7:54

Re: [Rails] Facility scheduling app for an airline

2014-12-08 Thread Norm Scherer
Open Campground is an app scheduling campground sites. You can take a look and download it at opencampground.com. It is rails 2.3.18 so some things have changed but the central issues are about the same. Norm On 12/08/2014 12:26 AM, Olivier R wrote: I need to create a simple application to

Re: [Rails] History of Ruby on Rails

2014-12-08 Thread Jason Fleetwood-Boldt
Google is a terribly unhelpful tool for much journalistic and historical analysis. Part of a serious problem with the no-memory generation we are now seeing. Google and Wikipedia have been largely discredited because they lack the verifiability of primary sources (academically speaking).

[Rails] Bundle Install Fails on SSL connect for Rake gem

2014-12-08 Thread Cindi
Hello - I'm just getting started with Rails, been a ColdFusion programmer for 10+ years. I'm trying to install Rails and get set up on my local dev and it mostly worked, except at the very end of the install using RubyInstaller, I get this message about a particular Gem that can't be

Re: [Rails] Bundle Install Fails on SSL connect for Rake gem

2014-12-08 Thread Jason Fleetwood-Boldt
Cindi, 1) did you try this: http://stackoverflow.com/questions/10246023/bundle-install-fails-with-ssl-certificate-verification-error 2) Tweet @rubygems_status or @dwradcliffe if you think the problem is on their end. (but more likely is that you're using an old version of bundler as explained

[Rails] Re: No such file to load error

2014-12-08 Thread Gene Dela Cruz
I'm using windows 7. How to install that in command line? -- 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 unsubscribe from this group and stop receiving emails from it, send an email to