search for: squires

Displaying 20 results from an estimated 107 matches for "squires".

Did you mean: squares
2006 Apr 11
11
I can''t get rails to see my plugin. How can I this?
I''m trying to produce a plugin to help me with my page caching woes. I can''t seem to get rails to see my method within the plugin. This is my first attempt at a plugin so I''m sure I''m missing something. I''ve created a directory /vendor/lib/plugins/broom_stick/. I then created an init.rb file with: require ''broom_stick'' I then
2006 Mar 01
5
validations without AR - going crazy trying to find link
Hi, in the past few months someone posted an entry on their blog about how to do validations in non-AR classes and I cant find it any more. Anyone have a link? Thanks, Trevor -- Trevor Squires http://somethinglearned.com
2006 Jun 01
3
rake create_sessions_table, does not create session table
when i run rake create_sessions_table, I get following output. tables donot get created and my application doesnot start. (in G:/rubysrc/blog) create db/migrate create db/migrate/001_add_sessions.rb info: the first time ran take everyting was fine, but now i have reinstalled ruby and rails and created the database, but i am unable to create session table with rake, please help.
2005 Dec 15
2
No printers found!
Hi there, I've just installed the official wine 0.9.3 deb file from winehq on an x86_64 system running Ubuntu. After working out some library issues, everything seems to run fine, except that I can't print. CUPS seems to be set up fine. I have one printer configured which I can print to, yet when I try to print from any Windows application, it tells me that I must install a printer
2005 Dec 08
2
bounce effect
Hi, I was wondering if anyone has seen (or completed) an effect to make something ''bounce'' like icons do in the OS X dock when you launch them? Something that looks like there''s a bit of gravitational behavior to it? Thanks, Trevor Trevor Squires http://somethinglearned.com
2004 Nov 26
4
Grandstream BT102 Busy signal on hangup
...text = sip mailbox = 5574 disallow=all allow=ulaw allow=alaw callerid = Doug Lytle <5574 [5558] type = friend host = dynamic auth=md5 username=5558 qualify=300 reinvite=no canreinvite=no nat=yes dtmfmode = rfc2833 context = sip mailbox = 5558 disallow=all allow=ulaw allow=alaw callerid = Brian Squires <5558> [5129] type = friend host = dynamic auth=md5 username=5129 reinvite=no canreinvite=no qualify=300 nat=yes dtmfmode = rfc2833 context = sip mailbox = 5129 disallow=all allow=ulaw allow=alaw allow=ilbc callerid = Teone Taylor <5129> my.extensions.conf [sip] ; (Voicemail) exten...
2007 Sep 21
3
TextMate Bundle and exception when switching to alternate file.
...@@ -63,7 +63,7 @@ def content_for(file_type, relative_path) case file_type - when ''spec'' then + when /spec$/ then spec(relative_path) else klass(relative_path) Thanks for your attention, Trevor -- -- Trevor Squires http://somethinglearned.com
2006 Jun 12
2
Getting 1 from children of has_many, Noob question...
The ''Agile Web'' book says that you can iterate over a list of children as so: order.line-items.each do |li| etc... This is fine when you need then all consecuitvely, but I need to pull the first one for the top of the page and still list all at the bottom. So, the question is: How do I reference the first item (child) directly? Thanks Lance F. Squire -- Posted via
2006 May 24
1
Best practices: a little pop-quiz on my blog
...Seeing as it''s probably of interest to more than just the three people (including my wife) that actually read my blog I figured it would be okay to announce it here. http://tinyurl.com/prxdl I''ll post my answers in a followup tomorrow (Wednesday). Regards, Trevor -- Trevor Squires http://somethinglearned.com
2006 Apr 17
2
Understanding when flash gets reset (render vs. redirect_to)
All, I have a controller action that will do a different "render (:action)" call depending on whether or not data is valid. When the data is invalid - I set a flash element to hold a message. However, when I post back to this controller action and have valid data, I still have the flash element set, which I don''t want. I believe this is because I did a render from the
1999 Nov 01
1
samba and SMP
...fresh installation, by the way. Client is an NT4 SP5 workstation; have tried both server and domain authentication. I have many KB of mptable/kernel config files/log files, but none of it seems very helpful. I suspect that a sniffer will be required to do a packet trace. Any suggestions? Mike Squires
2006 Mar 22
5
Class Caching Problem [was Newbie Question about Custom Classes]
So any other ideas as to why my custom class under app/models is being cached even though all the caching is set to false in the config/environments/* files? Currently I''m having to restart WEBrick after EVERY change to the file. The controllers and views are reloading just fine and not being cached. It''s just the custom class I created that''s being cached. Any ideas
1999 Nov 03
1
2.0.6pre3 and FreeBSD 3.3-RELEASE
...netstat -i shows 3 input errors in 6 million frames, 1 output error in 100,000 frames. NFS mounts of this server clock around 3MB/sec. Samba logfiles show nothing, other than the usual "call_nt_transact_ioctl: Currently not implemented." which shows up every time 2.0.5/6 starts. Mike Squires, Manager Instructional Computing Chemistry - Indiana University, Bloomington, IN USA mikes@indiana.edu
2006 Apr 17
3
Does render() have 2 be last statement in controller method?
I have a controller method that is attempting to do a render based on a potential error condition. So I have if (condition) render() else ..other code end ....other code in method Should I expect the render to take place immediately or does the render call not work because it isn''t the last statement in the method? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2006 May 31
13
What are controller modules *for*?
I am aware that controllers can be placed in modules: ruby script/generate controller modulename/controllername But what does this buy me? Is it just a way of ensuring that my source code is nicely arranged, or can I use the fact that a set of controllers are all within a particular model to implement functionality common to all of those controllers? Why am I asking? The app
2006 Feb 17
4
Table with Constants
I would like to have a table with some constants to use them later on for a drop down menu. How can this be done? My table looks like Table with constants ------------------------ id | key | value | type ------------------------ 1 | M | Male | sex .... I know it can be done like this <% select ''object'', ''method'', Constants.find(:all, :select =>
2006 Mar 31
5
Model reloading problem
Hi all, I''ve a model class Toto in the model directory. I don''t understand why i have to restarts WebBrick to view changes i make in this class FYI : in the development. rb i desabled class cache with config.cache_classes = false Regards Luciano -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jun 08
5
Suggestions wanted for non-logged-in user in closed beta phase
Will shortly be deploying first iteration of app to some beta testers (i.e. friends), and want them to be able see it both from logged-in view and guest (i.e. not logged-in) view. The two are a fair bit different. It''s a closed beta, so (hopefully) no pages (other than a blank login page) will be visible. The question is, what''s the best way for them to be able to see (and
2005 Nov 18
6
wrong number of arguments (2 for 1) error message help
All, This is really starting to get me as i can''t figure out why I am getting this error. Here is what is going on. I have a table called items and a item controller. When I add a new item to the items table I am also creating several associated tables. the code for this so that you can follow along is: def create @item = Item.new(params[:item]) # The item belongs to
2006 Apr 19
8
Module and Model
I am getting the following error /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb:1129:in `method_missing'': undefined method `directory?'' for Msg::File:Class (NoMethodError) I have a model called Msg::File in models/msg/file.rb, and I have a file in lib/msg/helper.rb which references to both Msg::File and File.directory? How do I help activerecord