#rubyonrails - Sat 14 Apr 2007 between 02:34 and 03:02



linojwhat value goes into the "exception" var?
tpopeif you define it, it will use it
take a guess :)
linojis this in lieu of a rescue statement, or i still need that?
jamesb43jesusfish, if they are simple charts, try gruff.
I don't really know what people use for really complex charts in rails. I haven't had to venture into those waters yet.
lonnyJumb0: I did not see if this is mentioned, but if you have a layout in views/layouts with the same name as your controller, it will be used automatically.
tpopeyes, and it will fallback to application.rhtml
Jumb0i'm currently just using render :layout that tpope mentioned
lonny: thank you though. that will be useful!
tpopethat's okay for one action
but for several, you'll want something less tedious
jesusfishjamesb43: I'm trying out ZiYa with SWF/XML Charts...but having issues
Jumb0ok guys i have another excellent question... for some actions i'd like to "<%= yeild %>" content on different parts of a layout. how would I go about that?
aroonivalidates_length_of :description1, :description2, :maximum => 45
jamesb43jesusfish, you have probably researched this more than me. I have only had a really simple requirements, and used gruff. Sounds like yours are a lot more complex.
aroonican i not do length_of validations for multliple properties at a time?
jesusfishjamesb43: well, I really just wanted to do 2 lines on one graph...one with a single value and the other with points
tpopeJumb0: read about content_for
Jumb0k
tpope: that's awesome! where do i put the markup for the <% content_for.. ?
jamesb43jf, are the x values evenly spaced on the line with multiple points?
Jumb0tpope: separate file?
linojtpope: when i put render :action => "index" in the rescue_action i get an 500 error
tpopeno
whereever you want
probably in the action
jamesb43And what output format are you wanting?
tpopebut maybe inside a partial
that is called by the action
arooniwhats better style?: overloading the before_create method? or having before_create method_name ?
:method_name i mean
patbamhi
tpopethe latter is more flexible arooni
but sometimes more verbose
patbami'm trying to import a js file called jquery.jeditable.js with javascript_include_tag , but i get <script src="/javascripts/jquery.jeditable" ... > . is there some way aorund that?
arooniwhere do you folks typically put your filter methods? at top of class?
jamesb43patbam, are you including the file extension in the javascript_include_tag?
patbamjamesb43: no
jamesb43: oh weird, that solved it

Page: 3 10 17 24 31 38 45 52 59 

IrcArchive