I have a database table 'tankticket' that has the following fields:
id
tank_id
ticket_date
batchid
product
api
tank_temp
gauge
gross_vol
vol_correction
roof_correction
net_vol
ticket_vol
created_on
updated_on
I Have a form that requires 'tank_id', 'ticket_date', 'batchid',
'product', 'api', 'tank_temp', and 'gauge'
I'm calculating the rest of the data in the application helper. I need
to know where the calculations should be triggered and how to get the
input data and the calculated data to the database when the 'create'
button is clicked...!
Thanks in advance...!
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Can you ls -alt vendor/gems?
I'm really curious about this and want to get to the bottom of it.
-- Yehuda
On Jul 30, 9:07 am, Matias Käkelä <li...@ruby-forum.com> wrote:
> Yehuda Katz wrote:
> > Does this mean that vendor/gems is owned by a different user than the
> > one booting the server?
>
> No, to isolate the issue, we've been running everything as root, nginx,
> bundler, etc.
>
> naturally vendor/gems is owned by root, but still bundler/passenger has
> issues if vendor/gems is not world writable.
> --
> Posted viahttp://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I'm new to rails and am trying to get an understanding on some of the
language usage...I have a mysql database with a table of data...I want
to retrieve the last record in that table without sending it an 'id'
or anything...I've tried the following:
def get_last_net_vol
@prevticket = Tankticket.find(:last)
last_net_vol = @prevticket.net_vol
return last_net_vol
end
This fails with:
Couldn't find Tankticket with ID=last
Extracted source (around line #54):
51: <p>VCF = <%= ctl -%></p>
52: <p>Net Vol = <%= round((grs_vol * ctl + roof_cor), 2) -%></p>
53:
54: <p>Last Net Vol = <%= get_last_net_vol -%></p>
Everything I've read tells me this should have worked so I'm
suspicious that it might be the version of rails I'm running...!
I'm running an old dual proc mac G4 with os x 10.5.8...ruby version
1.8.6...gem version 1.0.1...rails version 1.2.6
I know I should update to the later version of rails and gem...I have
tried but the standard methods to do so fail with
(Gem:RemoteSourceException) HTTP Response 301 fetching
http://gems.rubyforge.org/yaml)...I guess I could install it the hard
way but I don't want to chance compromising my current running
install...!
Any light shed will be greatly appreciated...!
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.