funkytwig

Activity Graph

Page 1 of 2 | Next »

2019-03-26

[10:49:02] funkytwig: has joined #RubyOnRails
[10:50:42] funkytwig: Hi, got rails_admin working but config/initializers/rails_admin.rb missing. In fact I dont even have a initializers directory.
[21:25:22] funkytwig: Ping timeout: 246 seconds

2019-03-19

[00:00:37] funkytwig: jtperreault, #<WalkSection id: 1, image: "IMG_8844.JPG", name: "IMG_8844.JPG", walk_id: 1, created_at: "2019-03-18 17:09:22", updated_at: "2019-03-18 21:02:01">
[00:00:45] funkytwig: jtperreault, cool
[00:05:40] funkytwig: jtperreault, so <%= @walk_section["walk_id"] %>
[00:06:07] funkytwig: gives 'no implicit conversion of String into Integer'
[00:06:32] funkytwig: and go does <%= @walk_section["walk_id"].to_i %>
[00:09:43] funkytwig: @walk_id = Walk.where( id: @walk_section[0]["walk_id"] )
[00:12:07] funkytwig: undefined method walk_id for @walk_section.walk_id
[00:25:20] funkytwig: Cracked it, and its 0025!!!!!!!!!!!!!!!!!!!!!!!
[00:25:33] funkytwig: jtperreault, Cracked it, and its 0025!!!!!!!!!!!!!!!!!!!!!!!
[00:30:27] funkytwig: jtperreault, than for your help, hwere are you?
[00:39:09] funkytwig: jtperreault, is ther a way of doing PM in IRC, would like to send you the link
[00:41:28] funkytwig: jtperreault, think I just sent it
[00:46:56] funkytwig: Ping timeout: 272 seconds
[18:36:03] funkytwig: has joined #RubyOnRails
[21:53:22] funkytwig: config/initializers doesnot exist, what gives
[21:59:54] funkytwig: OK, sorry its config/initializers/rails_admin.rb that ismissing from rails_admin
[22:00:29] funkytwig: michael_mbp, hi ;)
[22:01:37] funkytwig: michael_mbp, is this just a social visit?
[22:09:28] funkytwig: Ping timeout: 246 seconds

2019-03-18

[18:44:05] funkytwig: has joined #RubyOnRails
[18:44:20] funkytwig: is this a good place to get help with rails_admin
[19:08:08] funkytwig: Hi, ie trying to create a video and a controler for a model but dont want all the CRUD stuff, can I do this. Also I dont nessesery want ti called the same as the model
[19:08:24] funkytwig: sorry, meant view and controler
[19:12:07] funkytwig: jtperreault, so I want to create a view (page) called go_for_walk baised on Walk model. I will pass walk id in, I know about routing/passing in stuff.
[19:12:28] funkytwig: So I will need a walk and a controler
[19:13:47] funkytwig: Actualy probably best to say its baised on walk_sections.
[19:14:05] funkytwig: wali has many walks_setins has many walk buttons
[19:14:12] funkytwig: walk has many walks_setins has many walk buttons
[19:16:06] funkytwig: Yes, and a view, I think, basicaly a page
[19:22:12] funkytwig: jtperreault, Yes, and a view, I think, basicaly a page
[20:41:49] funkytwig: jtperreault, thanks for that, got it working
[20:42:31] funkytwig: I have an image in app/assets/images/walks
[20:42:53] funkytwig: but Yes, <%= image_tag 'walks/' + ws.image %>
[20:43:15] funkytwig: gives me 'The asset "walks/IMG_8844.jpg" is not present in the asset pipeline.'
[22:51:43] funkytwig: @walk_section = WalkSection.where( id: @section_id )
[22:52:07] funkytwig: @walk_id = Walk.where( id: @walk_section["walk_id"] )
[22:53:31] funkytwig: gwtting 'no implicit conversion of String into Integer'
[22:53:44] funkytwig: tried to_i everywhar but no luck
[22:55:13] funkytwig: jtperreault, backtrace https://gist.github.com/ben-tvpp/68b0fb7b5041e8bf0294615b00492c58
[22:56:37] funkytwig: jtperreault, https://gist.github.com/ben-tvpp/d0a07711732f531934152313eea217ab the code
[23:04:55] funkytwig: jtperreault, OK, hand on
[23:09:13] funkytwig: jtperreault, OK, so now the view is broke, obviously, can I rem out stuff?
[23:15:07] funkytwig: jtperreault, dont worry about that
[23:16:01] funkytwig: jtperreault, worked but what is @walk set to, is ther a way of unpacking in a view to debug
[23:16:24] funkytwig: jtperreault, <%= @walk %> returns nothing
[23:46:00] funkytwig: OK, how do I reference the object that comes out of a .where
[23:46:25] funkytwig: wd[0]["field"]
[23:46:47] funkytwig: @walk_section = WalkSection.where( id: @section_id )
[23:47:12] funkytwig: di I get a two direcnional aray, row/fields
[23:57:22] funkytwig: jtperreault, <% @walk_section.each do |ws| %> | <%= ws %> <% end %>
[23:57:56] funkytwig: jtperreault, gives me #<WalkSection:0x0000563cdd326520>
[23:58:11] funkytwig: jtperreault, how do I unpack it for debug

2019-03-16

[00:10:07] funkytwig: has joined #RubyOnRails
[00:10:13] funkytwig: has left #RubyOnRails: ("Leaving")
[00:10:19] funkytwig: has joined #RubyOnRails
[00:10:31] funkytwig: rails 5, whats wrong with
[00:10:35] funkytwig: validate :name, length: { :minimum 5, :maximum 255 }
[00:11:24] funkytwig: syntax error, unexpected tINTEGER, expecting => ...e, length: { :minimum 5, :maximum 255 }
[00:15:13] funkytwig: class Walk < ApplicationRecord
[00:15:21] funkytwig: validate :name, length: { minimum 5, maximum 255 }
[00:15:27] funkytwig: validate :description, length: { minimum 10, maximum 1000 }
[00:15:59] funkytwig: walk.rb:2: syntax error, unexpected tINTEGER, expecting do or '{' or '(' ...me, length: { minimum 5, maximum 255 }
[00:25:31] funkytwig: OK, should be validates but still getting the error
[01:53:55] funkytwig: Read error: Connection reset by peer

2019-03-15

[16:52:56] funkytwig: has joined #RubyOnRails
[16:54:21] funkytwig: Hi, my tails is a bit rusty and I have a question. I setuo database.ymp and did a 'rake db:create' and it created the DBs fine.
[16:54:48] funkytwig: My question is does this mean rails has the root password for the mysql DB?
[17:13:00] funkytwig: hahuang6-, was just a bit of a surprise. Its basically the boilerplate.
[17:14:38] funkytwig: with user/pass/db filled in
[17:40:20] funkytwig: What is a good forum for rails. Stackoverflow is great for specific tech questions but things like relative merits or varios grms etc. are not appropriate. For example I want to have a general question about rails and react.
[17:41:05] funkytwig: hahuang6-, PS thenks;)
[17:44:26] funkytwig: OK, we are thinking react, Veu.js for frontend and I am thinking rails for backed. The site, like lots, has custom pages and more CMS info type stuff. I did look at RefinaryCMS in the past but does not seam apropreate for a react site?
[17:44:49] funkytwig: Basicaly wondering how best to implement the info pages
[19:12:55] funkytwig: Hi, can you point me to a good tutorial that creates MVC without using scaffold. I am prototyping out a demo and using RailsAdmin to update datamase and dont want all the Views.
[19:13:14] funkytwig: Also I gother expirienced developers shy away from using scafold
[19:47:33] funkytwig: snk, cool, so apart from the model.rb what else does the scafolfd create. The Controler?
[19:48:02] funkytwig: is it better to do this or just create model and controler seperatly?
[19:52:34] funkytwig: Ping timeout: 250 seconds
[20:15:08] funkytwig: has joined #RubyOnRails
[20:15:32] funkytwig: has left #RubyOnRails: ("Leaving")
[20:15:39] funkytwig: has joined #RubyOnRails
[20:16:07] funkytwig: Hi, confused with text and string. It seems for mysql test is up to 255 chards and string unlimited. For postgres it seems to be kind of the other way round, this cant be correct
[20:16:33] funkytwig: other way round, this cant be correct
[20:34:36] funkytwig: My first migration failed https://gist.github.com/ben-tvpp/bf77af05274f8d11c0bf58054f888798
[20:35:21] funkytwig: The rails page comes up so thing stuff is basicaly setup, any ida why?
[21:12:26] funkytwig: config.eager_load is set to nil. Please update your config/environments/*.rb files accordingly:
[21:12:47] funkytwig: when trying to create a table, mysql, wiht a null:false
[21:13:02] funkytwig: did a bit of googeling without luck;(
[23:04:55] funkytwig: Remote host closed the connection

2017-12-13

[00:48:03] funkytwig: Thanks everybody, it may be I need a different tutorial to really understand what is going on. Any recommendations (I don't mind buying books)
[00:52:51] funkytwig: kishmesh, a gist (https://gist.github.com/) is a way of sharing code with people (call it something like info.rb and it will give you nice colour formatting). Basically copy the code to it and when you create it it makes a link).
[00:56:45] funkytwig: Radar, changed it but did not solve the problem. Got distracted;). Will come back to it when its not so late. did not know creating a simple mail form was so involved. FYI the tutorial was https://www.murdo.ch/blog/build-a-contact-form-with-ruby-on-rails-part-1.
[01:12:02] funkytwig: Radar, think, just brought a copy
[01:12:07] funkytwig: ACTION goes to bed
[01:21:23] funkytwig: meesles, not quite under the cavers. it will probably save me lots of time/hasle/stress well worth it, its was only £22 (and its new). I value these things more than mony;).
[01:25:59] funkytwig: Ping timeout: 256 seconds
[09:08:31] funkytwig: has joined #ruby
[10:25:33] funkytwig: Ping timeout: 264 seconds

2017-12-12

[22:29:01] funkytwig: has joined #RubyOnRails
[22:30:37] funkytwig: Client Quit
[22:33:49] funkytwig: has joined #ruby
[22:34:58] funkytwig: Client Quit
[22:36:15] funkytwig: has joined #ruby
[22:36:33] funkytwig: has joined #RubyOnRails
[22:41:44] funkytwig: Hi, been trying to build a mailer. The turorial I was using has - redirect_to messages_new_url, notice: "Message received" - but I get an error - undefined local variable or method `messages_new_url'
[22:42:32] funkytwig: The tutorial does not mention this method anyware so I thout it was a OOTB one. Any ideas?
[22:43:00] funkytwig: Radar, GOOD EVENING :-)
[22:48:46] funkytwig: The turorial has - get 'contact-me', to: 'messages#new', as: 'new_message' - and says -This creates a route named new_message_url - is this wrong. Will have a look at what this actualy created.
[22:54:18] funkytwig: Radar, I am, there is no new_message_url mention in routes. I just cant figure what is missong;-(.
[22:54:31] funkytwig: Radar, I am, there is no new_message_url mention in routes. I just cant figure what is missing;-(.
[22:55:15] funkytwig: I mean I know the route is missing, just cant figure what is it suposed to poing to
[23:08:05] funkytwig: OK, the mailer stuff is at https://gist.github.com/funkytwig/87d6ce7a2cac33e8a3c115a9763dd47a hope I got everything
[23:14:03] funkytwig: Radar, yes, will look through the tutorial, seem there is stuff missing, maybe I missed stuff.

2017-12-05

[19:20:12] funkytwig: has joined #RubyOnRails
[19:21:29] funkytwig: sorry, cant help. Did webserach not help?
[19:23:26] funkytwig: Looking for a kind of CMS to manage a few pages (under 10) on a site. most of it is coded in straight rails but there are a few simple pages that it seems sensable to hold in database. WISYWIG editor would be good. Any sugrstions?
[19:38:09] funkytwig: Ping timeout: 248 seconds

2017-09-18

[00:32:57] funkytwig: has joined #ruby
[00:32:57] funkytwig: has joined #RubyOnRails
[13:46:01] funkytwig: Ping timeout: 240 seconds
[15:22:25] funkytwig: has joined #ruby
[15:22:25] funkytwig: has joined #RubyOnRails
[15:54:08] funkytwig: Ping timeout: 240 seconds
[16:39:09] funkytwig: has joined #ruby
[16:39:09] funkytwig: has joined #RubyOnRails
[20:39:02] funkytwig: Ping timeout: 260 seconds
[20:40:22] funkytwig: has joined #ruby
[20:40:22] funkytwig: has joined #RubyOnRails
[22:51:43] funkytwig: Quit: Leaving

2017-09-17

[01:05:31] funkytwig: Quit: Leaving
[16:02:26] funkytwig: has joined #RubyOnRails
[16:02:26] funkytwig: has joined #ruby
[18:24:02] funkytwig: Ping timeout: 260 seconds
[23:05:52] funkytwig: has joined #ruby
[23:05:52] funkytwig: has joined #RubyOnRails
[23:57:35] funkytwig: Ping timeout: 240 seconds

2017-09-16

[17:18:27] funkytwig: has joined #RubyOnRails
[17:18:27] funkytwig: has joined #ruby
[17:21:42] funkytwig: Hi, i was trying to use 'rake assets:precompile' but yarn was missing. I use rbenv so could install webpack, or does that just make things more complex (still need yarn)
[18:28:49] funkytwig: havenwood, I don't have root access. Its debian. I will ask tham to add it. cmdtest seems to have yarn, will this do?
[19:05:35] funkytwig: I made 'config.assets.compile = true' in production.rb. Is this sensible?
[20:58:21] funkytwig: Ping timeout: 240 seconds
[23:19:46] funkytwig: has joined #ruby
[23:19:46] funkytwig: has joined #RubyOnRails

2017-09-12

[19:09:21] funkytwig: has joined #RubyOnRails
[19:09:21] funkytwig: has joined #ruby
[23:24:33] funkytwig: Remote host closed the connection

2017-09-10

[14:02:44] funkytwig: Remote host closed the connection

2017-09-09

[19:40:54] funkytwig: has joined #RubyOnRails
[19:40:54] funkytwig: has joined #ruby

2017-09-08

[01:31:45] funkytwig: Read error: Connection reset by peer

2017-09-07

[07:23:13] funkytwig: Remote host closed the connection
[16:44:11] funkytwig: has joined #RubyOnRails
[16:44:50] funkytwig: Hi, I am fairly new to rails and want to add a Missionary Layout in by apps views. Came across masonry-rails. Is this a good one to use or is there anything else people would recommend?
[20:41:57] funkytwig: git/rails worklow question. Should I have a branch for production(master), testing both protested (i.e. updated through pull requests) and developers branch off test and create there own branches (using there rails development env for there branches)
[21:01:05] funkytwig: cnk, OK, puting things into production is the next thing I need to learn about. The hosting is unicorn/nginx.
[21:04:42] funkytwig: cnk, will check. I have ssh login and can only see up to my home directory.

2017-09-06

[08:44:56] funkytwig: Remote host closed the connection
[22:32:21] funkytwig: has joined #RubyOnRails
[22:32:21] funkytwig: has joined #ruby

2017-09-05

[02:13:19] funkytwig: Ping timeout: 248 seconds
[08:31:36] funkytwig: has joined #ruby
[08:31:36] funkytwig: has joined #RubyOnRails
[11:54:14] funkytwig: Remote host closed the connection
[22:36:44] funkytwig: has joined #RubyOnRails
[22:36:44] funkytwig: has joined #ruby

2017-09-04

[08:32:42] funkytwig: Remote host closed the connection
[18:07:28] funkytwig: has joined #ruby
[18:07:29] funkytwig: has joined #RubyOnRails

2017-09-03

[02:43:12] funkytwig: Hi, when I get an error in rails server (browser), i.e. >> comes up, what comands can I use. can I shee what varables exist?
[03:04:36] funkytwig: elomatreb, I thought ls listed local varbles in pry bt it dont seem t work;{
[09:32:29] funkytwig: Remote host closed the connection
[17:44:43] funkytwig: has joined #ruby
[17:45:12] funkytwig: Client Quit
[17:45:53] funkytwig: has joined #ruby
[17:46:00] funkytwig: Client Quit
[17:47:13] funkytwig: has joined #RubyOnRails
[17:47:13] funkytwig: has joined #ruby
[17:49:11] funkytwig: In the geting started with rails guide, http://guides.rubyonrails.org/getting_started.html, controllers are both generated as plural and singular.
[17:50:29] funkytwig: Is it the case that if you are generating the for a table they must be plural but if not the can be singular.
[18:55:50] funkytwig: Ping timeout: 246 seconds
[19:13:13] funkytwig: has joined #RubyOnRails
[19:13:14] funkytwig: has joined #ruby

2017-09-02

[01:53:34] funkytwig: I have an arcitectural question, I posted to to ruby on rails talk (https://groups.google.com/forum/#!topic/rubyonrails-talk/MA8I-giPyR4)as its quite long. If anyone can have a lok that would be great.
[02:10:42] funkytwig: nofxx, so by go in CRUD you mean in the controller?
[02:13:01] funkytwig: nofxx, Ime using Nokogiri, the scrape class is just a wrapper for it.
[02:14:06] funkytwig: nofxx, the scripts basicaly map the scraped data into the events table.
[02:41:11] funkytwig: Ping timeout: 246 seconds
[02:45:18] funkytwig: has joined #ruby
[02:56:59] funkytwig: Quit: Leaving
[12:03:59] funkytwig: has joined #RubyOnRails
[12:04:26] funkytwig: If you have a rails app you are primevally using to display data collected by web scraping scripts and want to leverage the rails framework (ActiveRecords and anything else that is useful) to batch import data. How should I do this architecturally. Is there any documentation/guides/howtos that discuss this.
[15:31:31] funkytwig: Remote host closed the connection
[16:49:03] funkytwig: has joined #RubyOnRails
[16:50:38] funkytwig: Hi, I created a migration 'ails g migration CreateThisWeekView' but called it the wrong name, I have not done db:micrate', can I just delete the file and create the proper one?
[21:01:36] funkytwig: Ime trying to get my head around using viws to display data on the home page. Found this guide https://rietta.com/blog/2013/11/28/rails-and-sql-views-for-a-report/...
[21:03:05] funkytwig: Have created the migration and have view in DB but cant work out where the 'Read Only Report' model goes (in app/models maybe) and there is a report controler.
[21:05:44] funkytwig: I have already created a index view for home page but as well as stuff from the SQL VIEW also want to include stuff from another table.
[21:06:12] funkytwig: My views I mean RDBMS views, not rails views
[21:20:52] funkytwig: crst, maybe but I was hoping someone who was been doing rails for a few days would point me in the right direction. The guide I was using seems complete but as I am new to this I dont get some of it.
[21:21:18] funkytwig: crst, I thnik all the pices are there, its just knowing where to put them.
[21:22:38] funkytwig: crst, hand on.....
[21:23:24] funkytwig: crst, so I have the RDBMS view created as a migration, is there a simple way of creating a controler for it?
[21:23:43] funkytwig: crst, or a retrospective scafold
[21:25:00] funkytwig: crst, but I lsready have the database object, I thought the scafold created the table.
[21:30:11] funkytwig: crst, the view has a singular name, I guess I should rolback migration and give it a plural first?
[22:09:32] funkytwig: This looks very cool, https://github.com/thoughtbot/scenic, allows easy use of REBMS views.

2017-09-01

[08:21:36] funkytwig: Quit: Leaving
[17:30:08] funkytwig: has joined #ruby
[17:36:09] funkytwig: Years ago I learned ruby from a cartoon book, seem to remember cats and chunky bacon. Think this is it. http://www.rubyinside.com/media/poignant-guide.pdf. Even thought I was a veterinarian at the time I really liked it. Wondering it is still a good think to start a friend with who wants to learn ruby?
[19:11:59] funkytwig: ivanskie, thanks, I may try contacting the anther, and will look at codeschool. I loved poignant guide.
[19:15:00] funkytwig: has joined #RubyOnRails
[19:16:43] funkytwig: Hi, I am thinking of using 'rails runner' to run batch jobs to populate a database but I will have around 40 .rb scripts and am worried about the resource overhead...
[19:17:24] funkytwig: So wondering what the resource overhead of running 40 rails environments is?
[19:22:19] funkytwig: ivanskie, each script is a web scraper that gets events from a different music venue. I want to scrape very slowly so to be nice to the servers...
[19:23:22] funkytwig: So doing it very slowly (o.e. a http request every 20 seconds) seemed the best way to go. however this meant if I run them sxequentialy is would take a verry long time, so I run them concurently...
[19:24:02] funkytwig: LOL, sexquentialy, must look that up;). sequensialy
[19:24:31] funkytwig: ivanskie, 'delayed job'?
[19:25:49] funkytwig: ivanskie, I only run them once a day
[19:26:45] funkytwig: I think suck it and see is probably the best way to go, I will try it on the dev server and see what resources it used.
[19:27:47] funkytwig: ivanskie, probably not, they are run in the early houres
[19:29:32] funkytwig: ivanskie, also I have only written 9 so far and they will be slowly added so I can keep an eye on resource usage.
[19:30:09] funkytwig: ivanskie, that’s a VERY good point.
[19:31:41] funkytwig: ivanskie, actualy I will test it on my i5 laptop with a HD. Ime a great fan of not having a very powerful dev environment. that way if you write stuff that uses lost of resources you soon know.
[19:35:19] funkytwig: ivanskie, don't know much about testing performance, apart grom looking at resource monitor, but the scripts are only around 70 lines of code each and the lib methods are fairly simple.
[19:37:21] funkytwig: ivanskie, its events listings so got a great deal. If I just run them unthrottled, on lmy laptop, the longest is under 30 secs.
[19:37:43] funkytwig: OK, ime convinced, it wont be a problem
[19:38:36] funkytwig: ivanskie, always a pleasure, got to go out and do some boring stuff for my boss.
[19:39:30] funkytwig: ivanskie, then come back and refactor all my stand alone .rb scripts into rails.
[19:40:34] funkytwig: ivanskie, danka
[22:02:15] funkytwig: Hi, ime trying to create a new app with a postgres database. When I run 'rake db:setup' I get 'PG::ConnectionBad: could not connect to server: Connection timed out'
[22:02:58] funkytwig: TCP/IP connections on port 5432?
[22:02:58] funkytwig: Is the server running on host "localhsot" (81.200.64.50) and accepting
[22:04:23] funkytwig: which seems odd as ping localhost returns 192.0.0.1
[22:06:12] funkytwig: sorry, mean 127.0.0.1

2017-08-29

[23:35:25] funkytwig: has joined #ruby
[23:37:38] funkytwig: hi, been using the mysql gem and went to ruby 2.4.1 so went to mysql2 but it seems very slow. I have just come across ruby-mysql. So whitch of these do people recoment?
[23:42:20] funkytwig: matthewd, thanks, is there something I need to do to make it perform well, it seems VERY slow compared to mysql gen

2017-08-13

[01:01:20] funkytwig: Ping timeout: 246 seconds