#rubyonrails - Sat 31 Mar 2007 between 11:34 and 12:16

NY Lost Funds



valehrubackground: transparent url(../images/wrapper_column_bottom.gif) bottom left no-repeat;
should I use an image tag in the css?
from the css what should the url be to find the image directory?
JensBif I have a constant value which I need in several validations, e.g. a certain regexp, error message or list of valid responses, does it make sense to define it as a Constant, or a @@ClassVariable, or what else is possible?
hhaamuJensB, you probably want a class constant. about the same usage as regular constants, just on class level.
eg, Math::PI
lakbuhi. how can i list all the Mondays or Fridays in a year .. RoR way?
hhaamu(oh, right, Math is a module, not a class)
kaydaralakbu, loop from day 1 till last day and compare Time.mday
mondey is 1 and friday is 6
i think
monday*
JensBhhaamu, so just capital first letter and no @, right?
hhaamuTime.wday, not .mday
JensB, yep
kaydarahhaamu, right
JensBthanks
kaydaraweekday
lakbukaydara, ye. that's what i have in mind... maybe there's a neater way to do it
kaydaraif you find one tell me
:P
lakbusome helpers in activesupport maybe?
hhaamuthe neat way is to put it in a helper function
lakbuhhaamu, and only views can access it
hhaamucontrollers can, too, if they include the helper module
lakbuah ye.
hhaamuor that's the impression I've got. I haven't actually tested it anywhere myself.
zorglu_q. is it ok to do a 'return' inside a .rhtml ? i would like to stop the processing of the .rhtml when some conditions are true
NewMonarchWhat does this syntax mean? '1..variable_name'
RubyPantherit means http://poignantguide.net
NewMonarchhaha what is this?
RubyPantherzorglu_: it would be a lot better to structure it with conditionals
NewMonarchrange
JensBargh
shafirehow can i make a rails plugin?
JensBI don't get my associations to work
zorglu_RubyPanther: ok but can i interrupt the execution in .rhtml ?
JensBshafire, script/generate plugin foo
shafireah okay
RubyPantherzorglu_: that's not really the way it's done

Page: 4 11 18 25 32 39 46 53 60 67 74 81 

IrcArchive

NY Lost Funds