#Acts as List
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= form_for(@edit_single_response, remote: true, authenticity_token: true, :html => {:class => 'form-horizontal form-for-responses'} ) do |f| | |
- question.response_options.each do |response_option| | |
.form-group | |
%label.radio | |
= f.radio_button :response_option_number, response_option.id, :onclick => '$(this).trigger("submit.rails")' | |
%span | |
=response_option.text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku labs:enable user-env-compile | |
Or | |
heroku labs:disable user-env-compile | |
heroku labs:enable user-env-compile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'best_in_place' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku pg:pull HEROKU_POSTGRESQL_CYAN local_database_name --app app_name | |
(Make sure you don't already have a database with that name) | |
Ex: | |
heroku pg:pull HEROKU_POSTGRESQL_CYAN rigos_graphics_development --app rigosgraphics |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rails g paperclip news_post image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'rails_12factor', group: :production |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALTER SEQUENCE table_name_id_seq RESTART 500; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.parent{ | |
display: table; | |
} | |
.child{ | |
vertical-align: middle; | |
display: table-cell; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User.find_each(&:save) |
OlderNewer