boboc

Activity Graph

Page 1 of 1

2017-03-12

[20:38:10] boboc: has joined #RubyOnRails
[20:38:10] boboc: has joined #ruby
[20:38:32] boboc: has left #ruby: ()
[20:38:34] boboc: has left #RubyOnRails: ()

2016-06-25

[12:15:08] boboc: has joined #RubyOnRails
[12:15:08] boboc: has joined #ruby

2016-06-06

[19:54:05] boboc: has joined #RubyOnRails
[19:54:05] boboc: has joined #ruby
[19:55:53] boboc: Hi, i have a question, if i have 2 tables 1 for users and 1 let's say for facebook users, if the user will have posts but he can be logged in either with the email account or with facebook and we assume the other could not exist at a time, what's the best approach to create the association? user to posts and also facebook_users to posts seems wrong

2016-06-03

[19:04:13] boboc: has joined #RubyOnRails
[19:04:13] boboc: has joined #ruby
[19:06:05] boboc: guys i have a sample rails app, i have installed nginx and puma to test a droplet on digital ocean to try to deploy a sample app. i have added the 'bind tcp://0.0.0.0:9292' setting in puma.rb and 'server 127.0.0.1:9292' in the nginx upstream directive but when i access a route from the rails app it doesn't work. puma was started and it shows it is listening on tcp://0.0.0.0:9292. Any idea what the problem is? thanks
[19:06:15] boboc: guys i have a sample rails app, i have installed nginx and puma to test a droplet on digital ocean to try to deploy a sample app. i have added the 'bind tcp://0.0.0.0:9292' setting in puma.rb and 'server 127.0.0.1:9292' in the nginx upstream directive but when i access a route from the rails app it doesn't work. puma was started and it shows it is listening on tcp://0.0.0.0:9292. Any idea what the problem is? thanks
[19:07:05] boboc: domgetter: thanks

2016-06-02

[20:15:54] boboc: has joined #RubyOnRails
[20:15:54] boboc: has joined #ruby
[20:16:35] boboc: i have a question, i've added puma gem, my nginx upstream looks like this: server unix:///home/rails/my_app/tmp/sockets/puma.sock fail_timeout=0; how can i start the puma server so nginx could forward the requests?

2016-05-23

[16:54:58] boboc: has joined #RubyOnRails
[16:54:58] boboc: has joined #ruby
[17:33:58] boboc: Remote host closed the connection
[17:57:00] boboc: has joined #ruby
[17:57:01] boboc: has joined #RubyOnRails

2016-05-21

[09:57:12] boboc: has joined #ruby
[09:57:13] boboc: has joined #RubyOnRails
[09:57:35] boboc: guys i have a question, i have an api and my api controller is inside api/v1 folder
[09:58:45] boboc: if i try to create a test for the controller that have a facebook external call so i can mock it. the issue is that my @controller is nil in the test. i'm using the default minitest. any idea why?
[11:17:40] boboc: Remote host closed the connection
[12:00:23] boboc: has joined #RubyOnRails
[12:00:23] boboc: has joined #ruby
[13:39:08] boboc: Remote host closed the connection
[13:43:47] boboc: has joined #ruby
[13:43:48] boboc: has joined #RubyOnRails
[13:48:03] boboc: Ping timeout: 240 seconds
[14:57:05] boboc: has joined #RubyOnRails
[14:57:05] boboc: has joined #ruby
[22:21:23] boboc: has joined #RubyOnRails
[22:21:23] boboc: has joined #ruby
[22:22:44] boboc: i have a question, i'm using active_model_serializer gem and i can't make the response to include the root key. any idea why that might happen? thanks

2016-05-12

[21:55:52] boboc: has joined #RubyOnRails
[21:55:52] boboc: has joined #ruby
[21:56:51] boboc: hello, i'm new to rails and i would like to know how can i get besides the user profile from facebook also the credentials info like token and expiration date?

2016-04-25

[22:20:42] boboc: has joined #RubyOnRails
[22:20:42] boboc: has joined #ruby

2016-04-13

[17:58:37] boboc: has joined #RubyOnRails
[17:58:37] boboc: has joined #ruby

2016-04-08

[19:13:31] boboc: has joined #RubyOnRails
[19:13:31] boboc: has joined #ruby

2016-03-29

[17:04:57] boboc: has joined #RubyOnRails
[17:04:57] boboc: has joined #ruby

2016-03-04

[18:59:27] boboc: has joined #RubyOnRails
[18:59:27] boboc: has joined #ruby
[18:59:28] boboc: Remote host closed the connection

2016-02-24

[16:25:32] boboc: has joined #ruby
[16:25:33] boboc: has joined #RubyOnRails
[17:44:46] boboc: Remote host closed the connection
[17:53:00] boboc: has joined #ruby
[17:53:01] boboc: has joined #RubyOnRails

2016-02-02

[20:00:34] boboc: has joined #RubyOnRails
[20:00:34] boboc: has joined #ruby
[21:14:36] boboc: Remote host closed the connection

2016-01-22

[15:35:47] boboc: has joined #RubyOnRails
[15:43:36] boboc: has joined #ruby

2015-12-21

[21:50:25] boboc: has joined #RubyOnRails

2015-12-17

[13:02:29] boboc: has joined #ruby
[13:02:45] boboc: has joined #RubyOnRails
[13:05:14] boboc: Client Quit
[13:05:25] boboc: has joined #RubyOnRails
[13:05:25] boboc: has joined #ruby
[13:07:23] boboc: guys i have a question, i have an exercise to compare 2 classes and return my value? for ex if i subclass the String and have MyString < String, if i do MyString > String to return true. is this possible?
[13:09:31] boboc: apeiros: not the instance, the class itself. and i know it doesn't make sense, is just an exercise i have and i'm not sure if the Comparable module can be extended somehow so i could control this > response :)

2014-04-28

[10:13:27] boboc: Hello, guys i'm new to rails and i have a basic question. If i want to create a website with a top navigation menu that is rendered for almost every page/view (but not for all) how can i do that?
[10:13:42] boboc: I thought i could include the header with the nav in a layout
[10:14:15] boboc: and for pages that i want to include the menu, in the controller i render that layout, for the others i will use the basic app layout
[10:15:47] boboc: universal: thanks, that is what i thought :) and if the menu has some logged in/logged out buttons/items? how can i render those conditinal? i thought i could use a view helper where i will check the session[:user_id] and if the user is logged in i render the logged in nav, otherwise i will render the logged out nav items
[10:15:58] boboc: is this the correct approach? or there is a better way?
[10:16:50] boboc: universal: ok, thanks
[10:17:30] boboc: universal: the session should be accessed only in the controller's actions?
[10:18:12] boboc: universal: ok, thanks

2014-03-04

[16:38:22] boboc: guys what files i need to change in the rails app for production?
[16:38:52] boboc: toretore: do you have a url with a tutorial or something where i could check that?
[16:43:54] boboc: toretore: thanks....
[16:44:20] boboc: toretore: no need to be rude, i'm new to rails and i'm trying to learn how to deploy an app...
[16:45:54] boboc: toretore: i know that, what i was asking is where i could read about it :)
[16:46:53] boboc: toretore: i bought a hosting package from digital ocean and i have followed some of their tutorials, i have installed apache2, i have installed passenger, but i don't know what i have to change in the rails project.
[16:46:59] boboc: toretore: thanks for the link
[16:48:04] boboc: toretore: i have change the RAILS_ENV in the terminal to RAILS_ENV=production but 'rails server' starts webrick :)

2014-02-04

[13:09:56] boboc: guys anyone knows where tcp method is declared? I saw 2 examples used with Socket class where tcp method tool 2 arguments (host + port) or a block where the connected socket is available but in the ruby docs i can't find the tcp method, only in the Addrinfo class...
[13:10:43] boboc: TheLarkInn: yes
[13:11:39] boboc: i've looked here because i saw the Socket.tcp('host',80) method call works but here is no tcp class method: http://ruby-doc.org/stdlib-2.1.0/libdoc/socket/rdoc/Socket.html
[13:13:39] boboc: TheLarkInn: i'm learning from a book, the same solution is to use TCPSocket class, i'm just trying to understand where is this tcp method declared to look at it and i can't find it anywhere
[13:17:14] boboc: Butcho: Working with TCP Sockets
[13:18:02] boboc: TheLarkInn: yes in the book that is explained, as i said all i wanted was to find the tcp method declaration and it doesn't seems to be anywhere :)
[13:18:05] boboc: that's it

2014-02-02

[17:08:57] boboc: Hello, guys how can i create a server socket in Rails so the client could connect to the server using a TCP connection? i saw Ruby has this class TCPServer but how can i configure a rails app to accept TCP connections using an ip and a port?
[17:10:23] boboc: tbuehlmann: because the server needs to store the location of some cars which would need to be connected to the rails app using TCP and send the latitude/longitude
[17:11:07] boboc: and that location would be sent by the server to another place so the car location is updated on the map
[17:11:21] boboc: there should be a chat available to, so yes it would need to be TCP
[17:12:22] boboc: i know, but ruby has the TCPServer class which offers exactly this
[17:13:44] boboc: Scient: i don't know this is why i've asked here because i'm not sure if this is possible with Rails, i know a little about rails, i know how the routing system works, i know how a rails app works and i'm not sure how someone could connect using a TCP connection
[17:16:33] boboc: toretore: i thought i could use this in rails so i could benefit the orm active record

2013-10-29

[22:47:16] boboc: guys i have a basic rails app, i have created 2 objects in the database, i checked the sqlite3 file and objects are there, also if i use rails console the all method returns them, but in the controller the value is nil: http://pastebin.com/t6rnQbfE
[22:47:37] boboc: any ideea why is this?
[22:48:05] boboc: sorry, i'm used to pastebin but i will no longer use it here
[22:48:36] boboc: http://pastie.org/8441308
[22:49:06] boboc: s2013: it is nil, i've started the rails server with --debugger and if i check the value of @dogs after Dog.all is called it is nil
[22:50:08] boboc: <ActiveRecord::Relation [#<Dog id: 1, name: "Paco", rasa: "yorkie", created_at: "2013-10-29 22:10:28", updated_at: "2013-10-29 22:10:28">]>
[22:50:38] boboc: it exists, i've opened the sqlite file to and is there, but not in the controller
[22:51:07] boboc: i call the Dog.all in the home controller
[22:53:50] boboc: s2013: here is the printed value from the debugger: http://pastie.org/8441317
[22:56:47] boboc: s2013: yup, you are right, in the view the value is printed, but it is an active record: my var value: DOGG: #<ActiveRecord::Relation::ActiveRecord_Relation_Dog:0x007f9367dd7af0>
[22:56:58] boboc: why in the debugger is nil?
[22:57:46] boboc: oh,i'm stupid: <Dog:0x007f9367b8f0e0>
[22:57:55] boboc: it has a value.... :)
[22:58:12] boboc: sorry guys i'm new to rails, i just started to learn it :)
[23:01:43] boboc: optobear: thanks, p looks good
[23:02:12] boboc: 1 more question, in the view if i write this code it gives me a syntax error: <%= @dogs.each do |dog| %>
[23:03:58] boboc: MrPunkin: not working

2013-10-06

[00:11:46] boboc: how can i format an flaot to show with the $ at the begining? from 10.5 to format $10.5 ?

2013-10-02

[20:41:48] boboc: guys i'm new to ruby and i was wondering why the official docs classes doesn't include the ivard, just the methods? (http://www.ruby-doc.org/core-2.0.0/)
[20:42:02] boboc: or i'm not looking where i need to?