Page 1 of 16 | Next »
[19:08:45] Inside: all the cool techie kids hacking away at rails are now at their 9-9 jobs working on it professionally
[19:22:40] Inside: I would still, perhaps, use an existing SaaS ecommerce front and then build a configurator that'll redirect the user to the page for the individual product
[19:25:23] Inside: I guess it depends on whether you are the person developing the site (ie: want to charge as many hours as you can and justify your existence), or if you're the person selling and want to minimize dev costs
[19:32:15] Inside: Look at available e-commerce options and see if their cut is less than what you'd spend developing your own site
[19:32:43] Inside: Depending on your country it may be cheaper to develop your own (ie: if you're from eastern europe)
[15:32:02] Inside: pop up stuff on the side so that you can verify that the contact information is correct?
[15:36:19] Inside: break it up into a number of tasks - can you create a jquery script that loads in a list of contacts based on a partial match?
[15:38:50] Inside: (I mean you can use ujs, but for some reason I haven't wrapped my head around returning js to be executed in the browser as a thing I want to do)
[15:42:37] Inside: anyway, you would do the following: have an anchor div: <div id="search_results"></div>
[22:34:09] Inside: but that would require some sort of simplified DSL and then storing the code in a db
[16:20:37] Inside: Err - you shouldn't have to do anything - it should automatically bundle up all of your css and js and insert it into the layout that will be used to render the devise view
[21:58:01] Inside: https://api.rubyonrails.org/classes/ActiveRecord/NestedAttributes/ClassMethods.html
[22:03:53] Inside: ok wellThe keys of the hash which is the value for :posts_attributes are ignored in this case. However, it is not allowed to use 'id' or :id for one of such keys, otherwise the hash will be wrapped in an array and interpreted as an attribute hash for a single post.
[22:32:58] Inside: absurdly even if I Change your Title to has_many :polls and change your schema it still doesn't want to save
[22:46:16] Inside: From what I understand: you have a topic, a topic has a bunch of posts, you want to display the posts in order (their topic_position), and you want pagination
[22:49:03] Inside: you could have a dummy model like 'InitialPost' without any nested attributes, then parse those attributes and manually create 1 of each associated object
[22:49:49] Inside: and then in your Post controller, look up the topic, read the counter, and then assign the topic_counter +=1
[22:50:35] Inside: erm, topic_position would be your topic counter+1, and then when you save you could update the topic_counter
[23:10:49] Inside: you're right, I think two where statements is probably more efficient than an order+offset+limit
[16:30:52] Inside: I'm using python because it definitely has better graphing/ui/data analysis stuff, but am posting results to a RoR server
[23:04:47] Inside: I mean it's hard to figure out what to do based on limited info, but I personally like service objects/poros for that kind of stuff
[23:09:07] Inside: but, in the name of the Matz, DHH, and the holy MRI, I grant you permission to use a service object
[23:12:06] Inside: if I need to do something special (like calculate some values) - I'll pass stuff from the controller to a service object which will calculate that stuff and then create/update the model
[16:51:13] Inside: ugh - a bunch of my tests require that my test database is setup with a certain state
[16:53:04] Inside: well, I have a number of rake tests that copy data over from production into the test database -_-
[16:43:10] Inside: but, like Render.find(params[:renderer_id]) will throw an exception - you don't have to catch it
[16:44:32] Inside: and then your snapshot would fail to validate and then you can return the internal errors?
[17:17:24] Inside: I have a sql column with a 'time' type. Is there a way to post to a model without breaking up the constituent parts into YY/MM/DD, etc
[17:22:04] Inside: and now the least fun part of this project, generating a bunch of charts and graphs
[23:32:47] Inside: https://www.sitepoint.com/deliver-the-mail-with-amazon-ses-and-rails/ looks promising
[23:33:45] Inside: do I.... want to hide the data within like a... hidden tag so that google's graphing API can read it
[23:54:56] Inside: I've got a python program logging data, submitting it to a rails server, and then I want to use google's chart api to show stuff