Revision 3eecf845
Added by Amos Benari about 13 years ago
- ID 3eecf845feb5e7cff5ef380297be6d1f102f80d4
app/helpers/application_helper.rb | ||
---|---|---|
def contract model
|
||
model.to_s
|
||
end
|
||
def graph(type,opts = {})
|
||
Gchart.send(type, {:size => '400x150', :bg => "EDF3EF", :format => "image_tag"}.merge(opts))
|
||
end
|
||
|
||
def show_habtm associations
|
||
render :partial => 'common/show_habtm', :collection => associations, :as => :association
|
Also available in: Unified diff
fixes #285 - Use Charting system which can work offline
this includes:additionally, main menu buttons and bookmarks drop down are easier to handle and read