Posts by amalrik maia • 121 points
5 posts
-
1
votes3
answers228
viewsA: Using Services to vailidar + ruby on Rails
Is it possible to put your code on the github to see it completely? You don’t need to use a service to do this just put it in your users_controller.Rb def create @user = User.new(user_params) if…
-
0
votes1
answer50
viewsA: Duplicate a ruby membership on Rails
assuming that in your Resist.Rb model you have: has_many :genes and your Gene.Rb belongs_to :resist just put in the view: <% resist.genes.each do |gene| %> <%= gene.name%> <%end%>…
ruby-on-railsanswered amalrik maia 121 -
1
votes2
answers213
viewsA: Heroku deploy with Bower-Rails
I don’t think the Avits are being found. tries to add in your config/application.Rb config.assets.paths << Rails.root.join("vendor","assets","bower_components") config.assets.paths <<…
-
0
votes1
answer155
viewsA: Error executing a Rake Task
I didn’t get to test but something tells me that line: require "#{ENV["PWD"]}/config/environment.rb" is causing your problem. What you need to do exactly to have to give a require on Environment.Rb?…
-
0
votes1
answer292
viewsA: Ruby on Rails - Insert a render into an html tag
On your controller: @main_image = render_to_string(partial: 'feed/new_album') In your view: <%= render :partial => "feed/new_card", :locals => { :main_image => @main_image.html_safe }…