Posts by Débora Fernandes • 61 points
4 posts
-
0
votes2
answers72
viewsA: Problems with Rails Installation
Everybody goes through something like this when they start setting up the environment, my first answer is: não desanima! The things you installed are all there on your machine anyway, just need to…
-
2
votes1
answer61
viewsA: How to save data from a view that is inside a view in Rails
If your code refers to StrongParameters (allowed parameters) is just as you placed above, you need to change to pick up the parameters from custumer. Probably if you look at your log server rails s,…
-
3
votes1
answer124
viewsA: Return the name instead of the ID in a Rails relationship
You can search by city name in the same search to find the person, using the includes which will not do additional query. It would be something like: Person.includes(:city).where(id: 1).pluck(:name,…
-
1
votes2
answers66
viewsA: Symbols on the Rails
You can configure the plural as you need by changing the file config/initializers/inflections.rb, that will reflect on your entire application. It is worth remembering that Rails is a framework Coc…