Page 1 of 1
[13:38:16] passick: Hi there. I am writing a small project, and I want to have a model for events, and for each event I want users to be able to upload their pictures, using Paperclip.
[13:39:24] passick: I know that I can have nested resources, but how would I be able to check that user does not change some information about the event?
[13:44:57] passick: I have two models: Event and Picture, Event has many Pictures. I also have users, and I want them to be able to upload their pictures for events. As far as I understand, when I do a nested resource, I will have to submit pictures through a form for editing the event, but wouldn’t the user then have the ability to modify the information about the event itself?
[16:53:54] passick: Could anyone tell what I am doing wrong here? http://pastie.org/private/dc4jksycamwogwdjyamq
[20:23:06] passick: Where do I start adding tests? I already have a project with some functionality, but no tests. What should I read?
[20:47:40] passick: Another question: how do you deploy? Capistrano? Because now I log into the server over ssh every time I want to deploy, pull the changes, restart the server.
[20:10:06] passick: Hey guys. I have a problem with setting up the elastic search. I am following this guide (http://aaronvb.com/articles/intro-to-elasticsearch-ruby-on-rails-part-1.html), but when I type User.import, I get “ArgumentError: users does not exist to be imported into. Use create_index! or the :force option to create it.”
[20:26:21] passick: Ok, I feel a bit dumb now, I’ve had to add a row to the table to solve the issue. This problem kept bugging me for a couple of days.