search for: stjernstrom

Displaying 9 results from an estimated 9 matches for "stjernstrom".

Did you mean: stjernstr
2007 Aug 29
2
assign local variable instead of instance variable.
...: http://pastie.textmate.org/91995 The problem is that (assigns[:advert] = advert) creates an instance variable and :collection => @adverts creates a local variable called advert. Is there a way of assigning a local variables in a view/template from my description/spec? Cheers! Mathias Stjernstrom
2006 Mar 01
3
Convert Date to Time
Hi, How do i convert a Date to a Time?? I have a date returned from sql and i need to be able to use handy functions like next_week or beggining of week. Any help appreciated Thanks, Chris -- Posted via http://www.ruby-forum.com/.
2006 Feb 28
1
make a method in a controller do something by console script
is there a possibility to automate a method in a controller by a ruby script , i have written a method which is taking rssfeeds from other sites and puts it to my database , but i want to have this method called each 15 minutes , can you do it by a console script or do i have build a stand-alone program? can somebody put me on the correct track?or give me some hints greets Klaas -- Posted
2008 Dec 21
0
capistrano_colors version 0.2.0 has been released!
I got tired of viewing capistranos massive output so i''ve created this simple gem that colorizes capistranos output. + http://rubyforge.org/projects/capistranocolor/ + http://github.com/stjernstrom/capistrano_colors/ Screenshots can be found at http://www.pastbedti.me/2008/12/put-some-colors-of-your-capistrano-output/ Installation instructions: sudo gem install capistrano_colors In your config/deploy.rb require ''capistrano_colors'' Cheers! --~--~---------~--~----...
2006 Feb 27
21
what hardware shuld I but to manage 100k of connections per day?
I''m doing a fotolog for a company. It''s expected to manage about 100k of connections per day and about 1500 concurrents connections. What hardware should I buy to manage those numbers of connections? I''m planning to use slackware + lighttpd + fastcgi, but perhaps we will have to reuse some scripts in php, in that case I would use slackware + apache + mod_php + fastcgi
2006 Feb 26
4
New CMS: AdminPages. uses sortable tree to arrange pages
Hi all, I spent the last three days on a half-serious attempt at creating a simple, minimal CMS system on rails. check it out at http://adminpages.flowdev.de What it can do: manage pages in a sortable tree Add custom page elements Three page elements ready: Raw HTML, WYSIWYG editor, Rails render_component interface Sort page elements with drag&drop Choose page layout choose page element
2006 Feb 27
8
Change Bit Value To Text When Viewed
Hey All, very simple question for you folks ;) I have a @commutes object that for each record there is a bit value set (0/1) to denote if an accident occurred. What I want to do is have it display "Yes" or "No" when I view the listing of commutes. I can get it to display the bit value just fine with <%= commute.accident %> but how can I get it so that when a record with
2006 Mar 02
3
Modifying "Find" to always add a condition?
I''d like to always add a condition to any version of "find" (e.g. Thing.find(), Thing.find_by_name(), Thing.find_by_whatever) so that in addition to whatever conditions are set, an additional condition is set :conditions=>"user_id=#{current_user.id}" I''d like to make sure that a user only sees/edits/creates entries in the database that have the user_id
2006 Mar 02
17
can''t get rails to connect to mySQL - HELP!!!!!!!!!
Sorry, but this is really NOT as easy as the tutorials/books make out. I''m really struggling at the first hurdle here. And while I''m not a programmer by design I do know my way around most stuff. And if I can''t get this to work I suspect more people will have the same issues. There seems to be too many variables to address. I have winXP, I have ruby and rails all