Displaying 20 results from an estimated 61 matches for "whittaker".
2006 Mar 27
9
rename app>controller subfolder crashes app
Help,
I changed a folder name in my app>controller from admin to company and
now I get a company is not a class error.
I do not have any custom routes set and have changed all references to
admin, no joy.
Does ruby / rails have a cache of the names?
--
Posted via http://www.ruby-forum.com/.
2006 Apr 03
7
Javascript helpers not updating table row in IE6
Trying to replace a table row with an id using both RJS templates and
normal link_to_remote :update. Neither work in IE6, fine in FF etc.
If I use the same code but target a div with an ID it works. This is
tricky as I have a table with edit buttons, when the button is pressed
that row gets updated with a partial containing a form for update. I
need this to work as II don''t fancy
2006 Dec 15
8
Early morning strange error saying: Status: 500 Internal Server Error
...reported in ruby /
rails production.log. This appears to be craping out in mongrel.
Again this only happens overnight when there is no activity with the
site. PLEASE HELP. Is there any way to take a core dump of mongrel?
How can I get more logs to see what is happening.
Regards,
Matt Whittaker
2006 Apr 13
7
Whats the best way to achieve this?
employees HABTM projects, projects HABTM employees.
I am doing a permissions page for a selected project. I know that I can
get all of the employees in the system (@employee.find(:all)) or get all
the employees for the selected project.
What i''m trying to do is get a list of all the employees in the system
and have a check box that states if they are associated with the
current
2006 Apr 25
16
case statements in views...strange error on OSX
I have a simple case statement in one of my views. This works fine on my
windows machine. Move to the mac and I get: "parse error, unexpected
tIDENTIFIER, expecting kWHEN".
I have not changed anything but cannot resolve the issue. my view has
this in it (simplified for test)
<% case controller.controller_name -%>
<% when "accounts" -%>
<h3>worked
2006 Mar 24
3
generating a controller that inherits from a base controller
how can I generate a new controller that inherites from another bas
controller?
using: ruby/script generate myNewController command?
--
Posted via http://www.ruby-forum.com/.
2007 Nov 16
2
[Fwd: pxelinux doesn't suppress common prefix if nothing precedes double colon]
...sts that implicit hostname/IP has never worked,
ever since the common prefix suppression feature was added in version 3.00.
-------- Original Message --------
Subject: pxelinux doesn't suppress common prefix if nothing precedes
double colon
Date: Sat, 25 Aug 2007 22:22:00 -0400
From: Paul Whittaker <whitpa at velocitynet.com.au>
To: syslinux at zytor.com
Contrary to the pxelinux.doc documentation, the common filename prefix
is only suppressed if an explicit hostname or IP address precedes the
double colon, e.g. 192.168.1.1::/foobar. A tcpdump of TFTP requests
reveals that the do...
2006 Apr 13
3
Why won''t this work - simple helper text ??
Trying to print this out and it fails,
def cancel_toggle(element)
''<a href="#" onclick="new Effect.toggle("'' + element + ''","blind",
{duration: 0.4}); return false;" >Add a New Client</a>''
end
When called in my view like this:
<%= cancel_toggle "newClient" %>
It gets written to the browser
2006 Feb 19
3
accounts and subdomains
With reference to a previous
post:http://www.ruby-forum.com/topic/55201#new
I would like my app to function as follows:
A new user signs up for my application, his username is "andy". When
andy now logs in to the application the url is redirected to :
http://andy.myapplication.com
Questions:
Is this possible to develop on a windows box with webrick?
Do I need anything special like
2006 Mar 24
3
Changing sidebar in layout per controller
I am currently using 2 layouts in my site. One is for the admin area. I
am trying to get content in my sidebar to change depending upon the
current controller.
Example:
Within admin I have a users controller and a articles controller. When
in the users view I want the sidebar to display options (like add user
delete user etc).
What is the best actionview way to do this. I don''t
2018 Aug 02
3
Default compression level for -compress-debug-info=zlib?
...to our
end-users on whether to use this option or not based on my existing
extensive benchmarking of zlib in isolation. It's necessary to test in real
conditions.
Thanks,
Simon
On Thu, 2 Aug 2018, 15:22 Rui Ueyama, <ruiu at google.com> wrote:
> On Thu, Aug 2, 2018 at 2:05 PM Simon Whittaker <
> simon.f.whittaker at gmail.com> wrote:
>
>>
>> > As to (3), in most cases, I believe it is rare to distribute
>> executables with debug info widely
>> > I think it is at least less important than (1).
>>
>> Agreed.
>>
>> > I...
2006 Apr 03
4
page.visual_effect :highlight not working
I just upgraded Ruby to 1.8.4 and Rails to 1.1 and I''m in the middle of
changing my Javascript code over to the Scriptaculous helper functions.
page.visual_effect :highlight, "some_div" seems to be broken. Instead
of fading, the background color of the element stays highlighted.
page.visual_effect works for other effects, though. Any ideas?
Thanks.
--
Posted via
2006 Feb 08
3
ungenerate / remove scaffold command?
I have seen this somewhere and can''t find it now. Is there an ungenerate
or remove command for the scaffold generator. It would be easier than
removing all the files by hand.
I have tried ./script/ungenerate but no luck.
Thanks
--
Posted via http://www.ruby-forum.com/.
2006 Apr 06
2
rails 1.1 - console broken
Have upgraded to rails 1.1 and now ruby script/console does not work.
Throws an error:
c:\work\development\rails\application1>ruby script/console
Loading development environment.
c:/tools/ruby/lib/ruby/1.8/irb/init.rb:151:in `parse_opts'': undefined
method `up
case'' for nil:NilClass (NoMethodError)
from c:/tools/ruby/lib/ruby/1.8/irb/init.rb:19:in `setup''
2006 Mar 29
3
partial variable help
Can''t work this out:
In list.rhtml:
<% for employee in @employees -%>
<%= render(:partial => "list_form", :object => employee) %>
<% end -%>
In _list_form.rhtml (partial):
<%= employee.id %>
In controller:
@employees = Employee.find(:all)
I get the following error:
undefined local variable or method `employee''
I everything is correct
2006 Apr 25
4
Newbie - Grouping of items...
I''m trying to build a dashboard type page (similar in function to
basecamp''s) where I can show the last 5 updated items from my 3
differing models, then grouped together by project.
Solution ideas:
(1) Is it best to create a log model where everytime I add or update
another model (like messages, comments, lists etc) an enrty gets added
to the log along with the project. I
2001 Aug 29
2
Horses for courses - why not Wine 3.11, Wine 95, Wine 98, Wine NT etc.?
...file-by-file or subsystem basis, and some fairly
stringent guidelines/administration as to when a shared code line should be
split off into a target-specific variant.
The user of Wine would then opt to use the 'highest' level of compatibility
required for their application.
Regards,
Mike Whittaker
PS. the mailto links on the winehq.com pages don't work - not even
'postmaster', which RFC822 (?) says always should !
2006 Feb 21
11
helper for models?
Is there such a thing?
I have some duplicate methods in my models, can I place them somewhere
and call them in to my models, thus keeping DRY?
--
Posted via http://www.ruby-forum.com/.
2006 Feb 20
6
LoginGenerator - multiple user types...
I have been looking at the LoginGenerator gem. Looks great and can be
easily modified. However in my app I have two places where people can
login, one is for in my case "employees" the other is for "users". They
are seperate tables in my database and have many different fields.
I have an admin area located at ./sysadmin/ where only "employees" can
login, they
2006 Apr 28
3
Handling errors - incorrect value entered in url...
I have many "edit" actions in my project. If the url is like
http://localhost/project/3/edit and someone enters
http://localhost/project/3333333/edit the edit action will fails because
it cannot find a project with id of 3333333.
To combat this I am adding to every action like edit:
rescue
redirect_to :action => ''index''
flash[''errors''] =