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,
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
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
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
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
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
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
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,
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
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.
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
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| %
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
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
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,
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
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
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
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).
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
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
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
22 matches
Mail list logo