User Tools

Site Tools


software:rails

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
software:rails [2016/07/06 10:48] – created Michele Porellisoftware:rails [2017/10/18 09:27] (current) – Michele Porelli
Line 1: Line 1:
 ====== Rails ====== ====== Rails ======
-===== rails-erd ===== +===== Tips ===== 
-==== Verify that Graphviz is installed and in your path, or use filetype=dot. ====+==== locales and i18n ==== 
 +If you plan to change the default locale prepare yourself to fight a lot with your app.\\ 
 +Theoretically everything should works fine and out of the box but problems are very common, especially with dates.\\ 
 +I strongly suggest you to immediately add your local file from [[https://github.com/svenfuchs/rails-i18n/tree/master/rails/locale|here]] 
 +==== Find duplicates in the database ==== 
 +<code>User.select(:first_name,:last_name).group(:first_name,:last_name).having("count(*) > 1").size</code> 
 +===== Favourite gems ===== 
 +==== better_errors ==== 
 +Better Errors replaces the standard Rails error page with a much better and more useful error page. It is also usable outside of Rails in any Rack app as Rack middleware. 
 +==== rails-footnotes ==== 
 +Every Rails page has footnotes that gives information about your application and links back to your editor 
 +==== seed_dump ==== 
 +Seed Dump is a Rails 4 and 5 plugin that adds a rake task named db:seed:dump. It allows you to create seed data files from the existing data in your database. 
 +==== awesome_print ==== 
 +Awesome Print is a Ruby library that pretty prints Ruby objects in full color exposing their internal structure with proper indentation. Rails ActiveRecord objects and usage within Rails templates are supported via included mixins. 
 +==== switch_user ==== 
 +Inspired from hobo, switch_user provides a convenient way to switch current user without needing to log out and log in manually. 
 +==== progress_bar ==== 
 +ProgressBar is a simple Ruby library for displaying progress of long-running tasks on the console. It is intended to be as simple to use as possible. 
 +==== geocomplete_rails ==== 
 +jQuery Geocoding and Places Autocomplete Plugin 
 +==== rails_admin & rails_admin-i18n ==== 
 +RailsAdmin is a Rails engine that provides an easy-to-use interface for managing your data  
 +==== eu_cookies ==== 
 +A Rails solution to the European Cookie Law issue. 
 +=== Installation === 
 +The automatic installation of this gem is a little bit trivial, take a look to [[https://github.com/freego/eu_cookies/tree/master/lib/generators/eu_cookies/install|the procedure]] and do it manually 
 +==== rails-erd ==== 
 +Generate Entity-Relationship Diagrams for Rails applications 
 +=== Verify that Graphviz is installed and in your path, or use filetype=dot. ===
 but.... graphviz is installed! This happen when graphviz exit unexpectedly, probably because [[https://github.com/voormedia/rails-erd/issues/70|this bug]] but.... graphviz is installed! This happen when graphviz exit unexpectedly, probably because [[https://github.com/voormedia/rails-erd/issues/70|this bug]]
 Add this initializer:<code>require 'rails_erd/domain/relationship' Add this initializer:<code>require 'rails_erd/domain/relationship'
software/rails.1467802091.txt · Last modified: (external edit)