Activity
Posted in File Uploads with Refile Discussion
Looks similar but I've never used Dragonfly. Unless you need some other feature, it probably isn't worth switching yet.
I did! Thanks for your work on paranoia! :)
Posted in Forum Series Part 5: Email Notifications with Rails 4.2, deliver_later, and Previews Discussion
Very good to know! Thanks @Marklar
Posted in File Uploads with Refile Discussion
That's a great question and I don't particularly know the answer to that. I'm sure you can open an issue on Github and get a response.
I like that approach. And dang, 1.5M data points is a lot to import.
That's a really great point. What do you think is a good way to handle that case? Do you let them attempt it, count the lines in the file, and then return an error telling them to contact support if it is over a certain number?
I definitely need to cover ActionForm soon. I'm glad the Rails core team members are actively working on it.
Posted in Setup MacOS 10.10 Yosemite Discussion
You're welcome!
Posted in Liking Posts Discussion
Yeah, that's an issue with redirects and AJAX. jquery_ujs tries to combat that by following the redirect, but it obviously doesn't help since you need to handle that response separately. The simplest solution and what you should generally do is to just disable those links when users are logged out.
If you want to keep them enabled, but then show a sign in form, it's quite a bit more complex and would require you to write your own handler in JS to capture that response and handle it separately.
Posted in jQuery UJS and AJAX Discussion
Very cool. I really like this idea and certainly something that should be in Rails core if they continue supporting JS responses.
I believe FasterCSV got rolled into Ruby 2.x at some point so you don't need to use it anymore.
Posted in Setup MacOS 10.9 Mavericks Discussion
Their repo is fantastic for people familiar with how to setup Ruby. This guide's goal is to teach newcomers the basics.
I can't quite remember. You can try without and see if things like update work correctly and don't create a new forum_post. It might be required so it knows which record to update, but it might not. You may need to play with that to verify.
has_one and has_many are different and you'll interact with them differently.
has_one :content makes methods like @post.build_content and @post.create_content
has_many :contents makes methods like @post.contents.build and @post.contents.create
Much more information here: http://api.rubyonrails.org/...
Posted in Setup MacOS 10.10 Yosemite Discussion
zlib is missing; necessary for building libxml2
Make sure you installed all the dependencies (specifically zlib). Also, you almost never want to use "sudo" with this configuration.
You run capistrano every time you want to make your changes live on production. The shared directory ( and a symlink pointing to there ) is required so that you don't wipe out that file every deploy.
You'll want to create a secrets.yml just like you do with database.yml in the shared/config folder
Make sure to restart nginx after changing the configs. You can double check /var/log/nginx/error.log for Nginx errors if you get any issues.
Thanks for sharing!
Ah thanks for the heads up. That was my mistake.