#rubyonrails - Wed 16 May 2007 between 12:19 and 12:25



progress0rim about to throw my machine out the window and then myself after it. Ive been struggling with the user role/rights recipe from Rails Recipes ( see pastie I just submitted). Driving me NUTS!
would greatly appreciate any insight
jomznot really rails related, but..: anybody know of a fast way to undo a folder structure of all .svn folders in it?
LockeVendettarsl: take a look to this, if you please: http://pastie.caboo.se/62068
progress0rjomz yep
when you say undo, you mean remove the .svn folders?
jomzyeah
dagbrown"folders" :(
rslLockeVendetta, no need for difference variable. if (Time.now - session[:logged_in_at])/60 > 3 ... Still reading though.
jomzsome rm -rf command orso?
Merlin83bjomz: find . -name .svn -exec rm -Rf {} \;
Backup first :)
jomzheheh thnx :)
progress0rdang! merlin beat me
;)
rslLockeVendetta, you need to return false from that redirect. redirect_back_or_default(...) and return false
Rvhow can i get orginal value from model reformat it and display? sth like def value '%.2f' % value end ?
GarethAdamsjomz: do an SVN export instead of an SVN checkout
progress0rMerlin83b: whats the diff between that and find , -name .svn | xargs rm -rf ? just curious
pos69sumi'd like to create a global variable - a string, and have it available by any controller or model in my app. i tried putting this global var in application.rb and environment.rb - neither seems to work
progress0rs/,/.
pos69sumhas anyone done this?
rslpos69sum, that _really_ breaks MVC.
jomzMerlin83b: worked, thanks
Merlin83bprogress0r: |xzrgs won't work if it finds a lot of them.
pos69sumoh yeah
how come
jomzGarethAdams: i had those after freezing radiant from gem
but nvm, it's fixed
rslUm... by definition of MVC?
pos69sumi read some blog posts online by people that do it
rslHeh
pos69sumhow so
rslpos69sum, where?
progress0rMerlin83b: really? ive always used it but not had a lot. wild.
pos69sumthere's a few, just google global variables rails
progress0ranytakers on http://pastie.caboo.se/62065?
Merlin83bprogress0r: Hmm, maybe not in that instance, actually. Easier to have it all in one find than faff about piping though :)
progress0rMerlin83b: good to know thanks
Rvany one can help me?

Page: 2 9 16 23 30 37 44 51 58 65 72 79 86 93 100 

IrcArchive