[Rails] render partial in json resonse

2018-05-13 Thread fugee ohu
error: ActionView::Template::Error (Missing partial transactions/_receipt, application/_receipt with {:locale=>[:en], :formats=>[:js, :html, :text, :css, :ics, :csv, :vcf, :png, :jpeg, :gif, :bmp, :tiff, :svg, :mpeg, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :pdf,

[Rails] Help regarding a problem

2018-05-13 Thread Geetha Reddy
Hi All, I have the following problem. can you help me in solving this. Suppose we could access yesterday's stock prices as an array where: - The indices are the time in minutes past trade opening time, which was 9:30 am local time - The values are the price in dollars of Apple stock at

[Rails] How do I override asset_path while retaining access to the original?

2018-05-13 Thread Todd Blanchard
I've been banging my head on this for some days. I am working on a multi-tenant rails application that wants to use themes for each tenant. I have managed to customize view template finding with FileSystemResolver so that it prepends the current domain to the view search path and, if not