| progress0r | im 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 |
| jomz | not really rails related, but..: anybody know of a fast way to undo a folder structure of all .svn folders in it? |
| LockeVendetta | rsl: take a look to this, if you please: http://pastie.caboo.se/62068 |
| progress0r | jomz yep when you say undo, you mean remove the .svn folders? |
| jomz | yeah |
| dagbrown | "folders" :( |
| rsl | LockeVendetta, no need for difference variable. if (Time.now - session[:logged_in_at])/60 > 3 ... Still reading though. |
| jomz | some rm -rf command orso? |
| Merlin83b | jomz: find . -name .svn -exec rm -Rf {} \; Backup first :) |
| jomz | heheh thnx :) |
| progress0r | dang! merlin beat me ;) |
| rsl | LockeVendetta, you need to return false from that redirect. redirect_back_or_default(...) and return false |
| Rv | how can i get orginal value from model reformat it and display? sth like def value '%.2f' % value end ? |
| GarethAdams | jomz: do an SVN export instead of an SVN checkout |
| progress0r | Merlin83b: whats the diff between that and find , -name .svn | xargs rm -rf ? just curious |
| pos69sum | i'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 |
| progress0r | s/,/. |
| pos69sum | has anyone done this? |
| rsl | pos69sum, that _really_ breaks MVC. |
| jomz | Merlin83b: worked, thanks |
| Merlin83b | progress0r: |xzrgs won't work if it finds a lot of them. |
| pos69sum | oh yeah how come |
| jomz | GarethAdams: i had those after freezing radiant from gem but nvm, it's fixed |
| rsl | Um... by definition of MVC? |
| pos69sum | i read some blog posts online by people that do it |
| rsl | Heh |
| pos69sum | how so |
| rsl | pos69sum, where? |
| progress0r | Merlin83b: really? ive always used it but not had a lot. wild. |
| pos69sum | there's a few, just google global variables rails |
| progress0r | anytakers on http://pastie.caboo.se/62065? |
| Merlin83b | progress0r: Hmm, maybe not in that instance, actually. Easier to have it all in one find than faff about piping though :) |
| progress0r | Merlin83b: good to know thanks |
| Rv | any one can help me? |