Posts by MurifoX • 192 points
4 posts
-
1
votes3
answers131
viewsA: Problems with belongs_to when using Ajax in Rails 4
You can "cheat" the error by adding a if i.product your listing: <td><%= i.product.name if i.product %></td> The problem does not occur, but it does not explain why. It has…
-
1
votes3
answers864
viewsQ: Difference between ways to perform a backup (Disk space, buffer, etc.)
Suppose I have a machine with 10GB free disk space, and I have a backup script from a database postgresql, that when run, it backs up locally and just after finished, copies to another remote…
-
0
votes1
answer171
viewsA: "Sqlite3::Sqlexception: no such table: main.Category" running rake db:migrate with Gem Acestry
According to the documentation of add_index, http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/SchemaStatements.html#method-i-add_index The table name is passed in the plural, so I…
-
1
votes3
answers128
viewsA: Nomethoderror in Users#show
There is a command that assists in visualizing your routes. When you access a URL like /users/1/edit, using edit_user_path, it redirects you to the action edit of your users_controller. This command…