#RubyOnRails - 31 December 2017
« Back 1 day Forward 1 day »
[02:22:17] tcopeland: if conta comes back - seems like there could be another model ContentLink; it could belongs_to :post and have polymorphic relationship (as Attachable) to Text/Picture/Gallery. Then Post has_many :content_links and ContentLink has scopes around specific types
[02:24:53] tcopeland: nuts and bolts at https://gist.github.com/tcopeland/05357dfd7eaf43a8152421f64b26fdaf
[07:05:46] za1b1tsu: Hello, can someone tell me the best way to turn an object in to a hash, but use only certain attributes? I dont want id etc
[11:42:28] mynameisdebian: It is not cost effective at this point to build ARM devices with more than 2GB. ARM devices are not built to be modular, so a major chip manufacturer has to take an interest in producing an SoC with more than 2GB of RAM. RAM is expensive these days and most ARM devices are designed to be portable and cheap, so 4GB is very rare and probably not very profitable, and anything greater will probably not see the light of day
[11:42:28] mynameisdebian: for some time. This is why Raspberry Pi is not planning on even upgrading to 2GB any time soon
[11:43:17] mynameisdebian: Looking at the example at the bottom of this page on Controllers here: https://www.tutorialspoint.com/ruby-on-rails/rails-controllers.htm What is the practical difference between the "show" and "edit" methods? Are they both needed?
[13:25:47] pwnd_nsfw: I guess your standard PC modules can be a rather larger size compared to the sizes that they're capable of making though
[15:25:58] mmoll: GodOfSea: I guess most people here would prefer RoR... architecturally both are similar (also Laravel on PHP)
[15:32:42] havenwood: GodOfSea: I prefer the underlying language, framework and pace of development.
[15:34:00] havenwood: GodOfSea: I've also done a lot more work in Rails than in Django. Another nice framework you could look at is Phoenix if you feel like learning a bit of Elixir.
[15:57:43] walidvb: i'm trying to rescue an error in an initializer, but when i make a request the error is thrown anyways in development
[18:03:38] mynameisdebian: I'm trying to follow the tutorial at https://www.tutorialspoint.com/ruby-on-rails . I am on the example at https://www.tutorialspoint.com/ruby-on-rails/rails-views.htm where I add a new book in the form. My "Subject" drop-down box is empty. The subjects are created in a migration example about 2/3 down the page here: https://www.tutorialspoint.com/ruby-on-rails/rails-migrations.htm . When I run "rake db:migrate" I get
[18:03:38] mynameisdebian: https://pastebin.com/9rYMXxDg . I don't think the values are being inserted. Can anyone help me figure out why?