ruby on rails - Heroku and Development behaving differently -


i have app runs bug fixes correctly on dev machine. stopped using sqlite3 , use pg in local machine.

i deployed app new heroku app still behaves differently on production , development.

here how push heroku.

 >git commit files have modified   > git push origin master  > git push heroku master 

the other difference pg on local machine 9.3.2 , pg on heroku seems 9.3.3 same code behaves in differently. appreciated.

  def pro_user         @pro_user = subscription.where(:email => current_user.email).pluck(:email)         rescue activerecord::recordnotfound     end 

view code follows :

     <% if current_user %>        <% if pro_user.empty? %>         <!-- not premium user logged in user free stuff -->                     <% else %>           <!--  premium user display -->       <% end %>       <% else %>                    <!-- not logged in-->      <% end %>   


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -