search for: felstead

Displaying 20 results from an estimated 20 matches for "felstead".

2005 Jun 09
8
RDoc Dashboard Widget
...ithout having to open a Safari/Firefox window. Anyways, any bug reports/criticism/comments are welcome... you can grab the widget from: http://widgets.precisionis.com.au/ I''m also working on an IRB widget which should be done shortly, if anyone''s interested. Have fun! -David Felstead
2006 Apr 20
11
dynamic mock object anyone?
Hi guys, got this problem with creating such a thing... hope anyone could help.. the problem: ok, now i have this mock object that would simulate a external rpc call. eg require ''models/xmlrpc_agent'' class XmlrpcAgent def create(params) 200 end end but the value of the value returned is fixed. which is quite hard for me to test the controller when different
2006 Mar 19
3
How can I access an attribute via a symbol?
In my model I''d like to write a method that accesses the attributes by name. A very simple implementation would be class MyModel < ActiveRecord::Base def get_value(attribute) return value_of_attribute end end Then I can call it with m.get_value(:name) to get the value of the name column in the db. I''m not sure what to put in for
2005 Jun 13
1
RDoc Dashboard Widget v1.2
...on settings between sessions * An auto-update notifier It can be downloaded from: http://widgets.precisionis.com.au/ Thanks to everyone who responded and sent in suggestions and bug reports, it made a huge difference. As before, feedback, criticism, bug reports - all welcomed. Have fun! -David Felstead
2006 Jun 03
12
How to get dynamically created inputs from html form back to rails app
Thank you in advance. Although I have many years of experience in general, including cross- platform processing, I am not an HTML/Javascript programmer. As a result, I do not have certain specific baseline skills and/or knowledge that are presumed in the Rails and Ajax documentation. I am experienced with DOM manipulations, so the bare mechanics of manipulating the browser GUI via Javascript
2005 Dec 22
2
Pretty Log Output on OS X
Howdy, I am using Apple''s Terminal and Rails 1.0 on Tiger. I am tailing my log files and it seems with one of these updates things changed a little. I see all these ''ESC'' codes all over. How can I make the output prettier? I''d rather not move to iTerm, not one of my faves. Cheers.
2006 Jun 04
3
link_to tool tips
I think they are called tool tips... I have view code that looks like this... <%= link_to ''I'', :action => ''edit_innoculations'', :id => personnel %> Is there an option (I don''t see it in api) to have tool tips for a link_to ? Craig
2006 May 30
6
How to solve "Marshal Data Too Short" error?
Hi I''ve got the error in the log file "marshal data too short" after I try to store some data into session. After doing some research on the internet, it looks like the problem was caused by pstore.rb. It is there way to solve this problem? Thank you -- Posted via http://www.ruby-forum.com/.
2005 Jul 26
14
Rails VS ASP 2.0 on IIS and Windows 2003 server
I''m working in a complex web app that could have 1000+ users within the next year. It must be run on Windows 2003. Current db is SqlServer 2000. Company is deciding between Rails and ASP 2.0. I''d like to get some feedback on which would be the best to develop in. ( I prefer Rails :) 1. Will Rails be stable in that environment? Will it work with IIS? 2. Is it better for
2006 Jan 12
4
If statement based on a action
Question for you all is it possible to use an action in an if statement? I am using the same form for edit and new and I have a cancel button on the page. This cancel button is built with an if statement that looks right now to see if a parameter exists to define where to go back to if the user cancel. The problem occurs when the user submits the form and there are missing fields by
2006 Jun 06
4
PHP FTP functions equivalents?
Two questions from a PHP guy thinking of moving to Rails: 1. Does Rails have equivalents for PHP''s FTP functions (www.php.net/ftp)? 2. What about image editing functions similar to PHP''s GD2 functions? (I would basically want to be able to crop, rotate, draw lines, add text...) I searched online for the above but I got somewhat conflicting info about image editing and
2006 Apr 20
5
Mystified by ActiveRecord.serialize
I''m either missing a step, confused or seeing some odd behavior with ActiveRecord''s serialize feature. When I load an ActiveRecord object from the database, my serialized attribute is a YAML::Object, not the original object. My code is based on an example of this capability in the "Agile Web Dev. w/ Rails" book (p. 196). In create.sql: <code> create table
2006 Jun 01
9
access model from controller
Hello, Rather new to RoR, so I''m not sure about the terminology and such :-/ . My question is: how could I know the model which is associated to a controller? For example: - controller class is TestController, which is a subclass of ApplicationController - associated model class is Test How could I write some code in a method of ApplicationController to dermine the current
2006 Jun 27
1
user.save now workie, but user.update_attributes does
In my User model, I had this: def update_last_login_time self.last_login = Time.now self.save end But last_login was not being set. When I changed it to this it worked: self.update_attribute( :last_login, Time.now ) Any ideas why? ~S
2006 Apr 06
4
Using RJS to call custom JavaScript class/method
The announcement for RoR 1.1 shows some nice examples of RJS calls. In particular I am interested in this one: # Call the custom JavaScript class/method AddressBook.cancel() page.address_book.cancel In trying to develop a "lightbox" style modal form, I have been successful in saving the form data via AJAX but I can''t seem to close the "lightbox". I am using the
2006 Jan 19
3
-517611318:Fixnum ... WTF?
I''m getting occasional errors that look like: Some method called for -517611318:Fixnum The method is constantly changing, and this error happens on ~5% of the page loads on my Mac Tiger development box. It''s happening on Ruby 1.8.2, and 1.8.4 compiled from source. I haven''t seen it on my Linux production boxes. I was wondering if anyone had seen this before? --
2006 Jun 03
4
newbie question
All experts out there, I went thru the archives and aparantly lot more people have the same problem as me. I would like someone to answer the following question. Question: How to handle multiple rows in a single form? Example: Say there is a employee class, with the following 4 attributes 1. name (text field) 2. sex (radio button) 3. state (drop-down) 4. company policy indicator
2006 Jun 14
3
problem trying to update multiple <DIV> elements with AJAX
I''ve been trying for days now to figure this out on my own, but I can''t, so this is my cry for help. Here''s my situation: I need to update multiple <DIV> elements on a page, each with its own HTML, but I just can''t figure out how to get it to work. That is, I want to replace everything within each <DIV> element with something new. When I try what
2006 Oct 11
5
Marshal Data too short error with ActiveRecord sess. storage
I''m seeing a "marshal data too short" error with an ActiveRecord store for my session data. Other posts say that this happens when the size of the session data exceeds the size of the "data" column in the sessions table. But my "data" column is a TEXT field so it seems unlikely that I could have blown it out. Has anyone else seen "marshal data too
2006 Mar 23
1
YAML inconsistencies...
I figured I''d post here before submitting a ticket, but I''m seeing some confusing stuff when dealing with YAML now. I was using it to freeze objects in my database, and so i had some data already around to mess with. I upgraded both Ruby (1.8.3 -> 1.8.4) and Rails ( -> 1.1RC1) and this junk started. I''ve outlined the problem in two pastes, which I''ll