Displaying 14 results from an estimated 14 matches for "dershowitz".
2007 Feb 03
7
Interesting radio button behavior with "onclick"
Hello:
I have radio buttons like this:
<% fields_for :goalhist do |g| %>
<table>
<tr>
<td align=left><%= radio_button_tag (''duedate'', 0, checked = false,
options = {:onclick => ""}) %>
Start now
</td>
</tr>
<tr id="detailed" style="display: none"><td colspan=2>
2007 Feb 12
2
Objects in Arrays? Allowed, right?
Hi:
I''m trying to manually append objects to an instance variable that is
just an array of objects. Here''s my controller code:
@tasks = Task.find(:all, :conditions => "entity_id =
#{session[:user].id}")
for t in @tasks
if Subtasks.find(:first, :conditions => "child_id = #{t.id}") != nil
@mtasks << t
end
end
However, when I execute, I
2007 May 22
6
Ferret file not found error on item delete
Hi ferreters:
I''ve already posted this in rails, but someone there suggested this
would be better.
I''m getting a ferret error when I try to delete any item that has been
previously indexed. I just installed ferret, so the indexes aren''t big
or anything. What I''m trying to do is to just delete an item on a table
that has been index. Here''s the error
2007 Dec 17
1
attachment_fu error? Help!
FreeImage exception for type ???: IPTC: Invalid key ''Tag 0x0275
Anyone seen this?
FreeImage exception for type ???: IPTC: Invalid key ''Tag 0x0275''
[RAILS_ROOT]/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/processors/image_science_processor.rb:14:in
`with_image''
Thank you so much in advance for your help!
Mike
--
Posted via
2007 May 19
4
button_to_function with image?
Hi:
does button_to_function allow the use of an image? I tried it in place
of the text with "image_tag" and it doesn''t work. Maybe some form of
button_to?
Any direction you can give would be great!
Mike
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
2007 Jan 13
6
nice date function
Hi:
you know the way the google and this forum presents dates? How it''s
measure from the current date/time and presents nicely as "39 minutes
ago", 2 days ago, etc.? Has anyone done a gem or other library object
that I can get to do those types of dates?
Thanks so much in advance!
Mike
--
Posted via http://www.ruby-forum.com/.
2006 Mar 10
19
validates_date plugin for ActiveRecord
This plugin gives ActiveRecord the ability to do stricter date checking.
Example:
class Person < ActiveRecord::Base
validates_date :date_of_birth
end
This will ensure that date_of_birth is a *valid* date. The date can be set
initially as a string in any of the following formats:
"2006-01-01"
"1 Jan 06", or "1 Jan 2006"
"1/1/06" # Day /
2007 Jan 11
1
Nice UI Tabs - based on a click
Hi:
I have a piece of UI, basically tabs. The number of tabs will be
variable. the tab itself will contain fields that will change
depending on the tab (pretty standard). The UI could be Ajax-like, or
just nice scriptaculous, or whatever works. Can someone point me in
the right direction? Also, I''m a newbie, so simple is better, although
of course I''m willing to figure
2007 Jan 31
0
weird objects passing to partials
hello:
This is a bit of a weird one:
I''ve got a view with a partial. The view has a form_for .. do |f|. I
also have a partial. The partial has just one field that I need to
capture, that''s actually part of the object of the form_for (f). I need
this one field to be in a partial, becuase it''s actually part of a
show-hide, and the partial is 1 of 4 that can be shown.
2007 Jan 31
0
radio buttons => What if the value is a FK?
Hi:
I have radio buttons like this in my view:
<%= radio_button :goals, :goaltype_id, ''Recurring'', { :onclick => "new
Effect.SlideDown(''recurring''); return false;" }
%> Recurring<br />
<%= radio_button :goals, :goaltype_id, ''One-time'', { :onclick => "new
2007 Jun 17
1
actionmailer & picture
Hello
I''m using action mailer to create an HMTL outbound email. This email
renders a partial. In that partial, a call is made to a public location
to get a picture for display in the email.
When this email is generate, I get the following error (note: I''m sure
it has something to do with not understanding the context of
actionmailer and how it functions):
NoMethodError in
2007 Jan 13
2
Help with destroy method - newbie
Hello:
I have a destroy method in my controller - pretty standard:
def destroy
@goal = Goal.find(params[:id])
respond_to do |format|
format.html { redirect_to goals_url }
format.xml { head :ok }
end
end
And then I have a listing view which has the destroy method in the view
- also pretty standard:
<%= link_to ''Delete'', { :action =>
2006 Dec 16
1
Big Newbie - FreeBSD Apache2 & Rails?
Hello:
I need some basic help. I have a server on which I want to run rails.
It''s a freeBSD server with a current port of rails and a lot of other
things. I''m a relative unix newbie too so there are some big barriers
to entry here: Here''s what I''ve done
1. gem installed ruby
2. gem installed rails
3. gem installed mongrel
I''ve also used
2008 Oct 25
2
Update action | NoMethodError | nil.to_sym
Ok, totally no reason why I''m getting an error in this model update
and no other. HELP!
CONTROLLER:
# GET /employees/1/edit
def edit
@employee = Employees.find(params[:id])
end
VIEW:
<h1>Edit Employee</h1>
<div id="main-sub">
<%= error_messages_for :employees %>
<% form_for(@employee) do |f| %>
<table width="600"