similar to: Showing database results in a grid view

Displaying 20 results from an estimated 500 matches similar to: "Showing database results in a grid view"

2006 Jul 24
6
Mocking causes empty specification blocks
I''ve found myself mocking out a published api in my set-up method. This has led to some contexts having a large set-up and empty specifications. As the mocks get auto-verified, the specification blocks have nothing to do but serve as documentation. Does this sound bad? Chris
2010 Mar 02
1
Reading data file with both fixed and tab-delimited fields
Hello R wizards, What is the best way to read a data file containing both fixed-width and tab-delimited files? (More detail follows.) _*Details:*_ The U.S. Bureau of Labor Statistics provides local area unemployment statistics at ftp://ftp.bls.gov/pub/time.series/la/, and the data are documented in the file la.txt <ftp://ftp.bls.gov/pub/time.series/la/la.txt>. Each data file has five
2006 May 21
3
Using ParseDate in for loop
Hi, I''m trying to use ParseDate within a for loop but I get this error: can''t dup NilClass Any suggestions for making this work? Thanks, -Jason
2005 Oct 19
3
Finding all parents of acts_as_tree relationship
I''m using acts_as_tree to maintain a hierarchy of categories (each top-level category can contain multiple categories and each sub-category can contain multiple sub-categories, etc.). I want to be able to find all parents of a particular category. I realize that I can use @category.parent or even @category.parent.parent to move up in the hierarchy, but I need this to happen dynamically
2009 Apr 19
19
Controller spec: testing that scope is set
In a Rails controller I set the scope on a model class in an around filter. I have defined expectations on the model classes, and ideally, I would add a further expectation for the scope. Is this already possible in some way? How would I go about adding support a scope expectation? Michael -- Michael Schuerig mailto:michael at schuerig.de http://www.schuerig.de/michael/
2005 Aug 22
8
Observing changes to a text field
I''ve noticed that using several TimedObservers (prototype.js) on a page to watch for changes to text fields (haven''t tried forms) can have a non-negligible effect on the CPU cycles used by the browser process. Nothing dramatic, to be sure, but unnecessary. Autocompleter.Base (controls.js) follows a smarter strategy to watch for changes. Currently this functionality is tied
2005 Aug 13
4
Timing out ajax requests?
Has someone come up with a generic way to handle ajax requests that exceed a certain time? In my concrete case, I have several select boxes for drilling down a hierarchy. When the user clicks an option, the next deeper level is retrieved. To avoid multiple concurrent requests, I disable the select box. As the request may take too long or cause an error, I set a timeout that re-enables the
2006 Jul 27
9
Introspecting validates_presence_of
Hello people, I''d like to detect whether an attribute of a model has vaildates_presence_of applied to it so I can automatically apply a mandatory (*) to the field...it doesn''t look easy...any ideas? Cheers, -- Dan Webb http://www.danwebb.net
2005 Jun 29
2
Unit testing
Recently, I''ve started to write unit tests for some of my scripts. In general,it''s no worse in JavaScript than in Ruby or Java. I didn''t have the courage to try Selenium, but had a look at JsUnit. Unfortunately, in Konqueror it produces unfathomable errors and in Firefox it is slow beyond imagination. Anyway, writing tests for functions that are computational or
2005 Sep 06
4
url_for: :overwrite_params went missing
Somewhere between 0.13.1 and the current SVN version the :overwrite_params option to url_for (and related methods) went missing. I can''t tell whether this was deliberate or by mistake, and I have no idea how to get the same functionality in some other way either. Michael -- Michael Schuerig Life is what happens
2006 Aug 08
7
Useful plugins for RadRails
Hi Friends, Could anybody suggest me some nice and useful plugins for RadRails! It would be very great if we make list of all such plugins! 1)________ 2)________ 3)________ 4)________ 5)________ 6)________ 7)..... Please fill above blanks and lets make a big list of it! -- Don''t live to geek; geek to live. http://anilw.info -------------- next part -------------- An HTML attachment
2006 Jul 28
4
Validation Reflection plugin
The validation reflection plugin adds three things (1) Reflective access to validations - ModelClass.reflect_on_all_validations - ModelClass.reflect_on_validations_for(:property) (2) It provides "declarative" methods for defining validations based on database metadata - validates_presence_of_mandatory_content_columns - validates_lengths_of_string_attributes -
2005 Sep 13
12
PDF views?
I know there''s wiki page on generating PDF[*], but that''s not really what I want. I don''t need to create arbitrary PDF. What I''d like to do is create PDF templates and fill in the blanks. Roughly, I''m looking for functionality akin to the mail merge feature of word processors, including conditional and repeated elements, say, table rows. Michael
2009 Mar 02
1
Problem with dummy variables controlling for years
Hello everybody, I'm running a panel regression with dummy variables controlling for years. While this works fine for most of my models, in some cases I get the error message "In sqrt(diag(object$vcov)) : NaNs wurden erzeugt" and missing results for some or all of my year dummies: Estimate Std. Error z-value Pr(>|z|) year2000
2005 Aug 04
10
Rails Spin-offs WIKI.
http://rails-spinoffs.bombdiggity.net/index.php?title=Main_Page guys here is the wiki. Once you register let me know and I''ll give you full access to the site. Jon Jon Whitcraft Online Services (317) 492-8623 -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jul 27
9
CalendarHelper
Has anyone had any luck using the CalendarHelper plugin at http://wiki.rubyonrails.com/rails/pages/CalendarHelper recently? I''m scratching my head over the following error when I look at any page in my application: NameError in CalendarController#index undefined local variable or method `date_format'' for #<CalendarController:0x24ccd4c> RAILS_ROOT:
2006 Jul 28
12
MenuEngine
Hi all, MenuEngine is a small Rails engine that can generate templated drop-down DHTML menus commonly used for web site navigation. Supports creation of menus from a YAML file, from code and from pre-configured HTML. Optionally integrates with UserEngine for authorization. http://www.muermann.org/ruby/menu_engine Project page: http://rubyforge.org/projects/menuengine This is my first attempt
2005 Jun 29
14
Unobtrusive scripting?
Currently, pages generated by Rails tend to be sprinkled with JavaScript. This happens, because the various helper methods work only locally and simply append to the output. In order to hide the JavaScript away, rendering would probably have to be changed. A way I can think of is that a page-specific script is included in the head of the document and JavaScript code is not written to the
2005 Aug 01
2
function.prototype.bind return value?
Quick question - how come the function.prototype.bind doesn''t allow for return values? Am I missing some basic understanding of how this works? I searched and couldn''t find an answer. Specifically, I''m binding an object method to an existing form''s onSubmit, but it still actually submits the form, refreshing the page - which is not what I want. If change
2005 Sep 13
3
Alternatives to Rico LiveGrid?
I''m no friend of paging, but I have to somehow deal with lists of potentially large numbers of objects. The Rico LiveGrid[*] at first blush seems attractive, but has some major drawbacks. It doesn''t work with Safari/Konqueror, not yet anyway. It can only handle fixed-size tables and requires that widths, including column widths, are hand-crafted. I''m looking for a