Displaying 7 results from an estimated 7 matches for "spamhotmail".
Did you mean:
nospamhotmail
2006 May 24
4
pdf on the fly
In my rails app I need to create pdf reports on the fly. I have
installed railspdf, wich is working fine. But, how can I create tables
and paragraphs and stuff? Can I mimic an .rhtml file (using <% for
...%> etc? Or is it wise to use Ruby::PDF directly? Is there anyone out
there with experience in this, and who is willing to share his findings?
Thx
--
Posted via
2006 Jun 04
3
Ajax table does not update
I have two models: Child and Day. A Child has many days, and a day
belongs to a child.
I want to create ana ajax table listing the children and, after pressing
a button, I want to show the days that belong to that child.
Here is my code:
(list.rhtml)
<table>
<tr>
...
<td><%= link_to ''Days'', :action => ''show_days'', :id =>
2006 Jun 17
2
problem with select_date
In my form I have these items:
<%= select_year Date.today,
:start_year => Schoolyear.get_startdate.year,
:end_year => Schoolyear.get_enddate.year %>
<%= select_month Date.today.month %>
No matter what I do, in my controller I can''t seem to access the
selected year and
month.
I have tried params[:month].to_s and also
2006 May 03
0
allign records with start- and enddates
I have this model (Days), that has a start- end enddate. It has a
belongs_to relationship with Child. So, one child can have many Days.
If a new Day is added, the start- and enddates should all allign. Is
there a plugin, or a ruby class that I could use to achieve this?
--
Posted via http://www.ruby-forum.com/.
2006 May 03
2
disabled check_box does not work as expected?
I have a checkbox:
<%= check_box(:day, :monday, {:disabled => ''''} , (day.monday == true ?
{:checked => ''checked''} : {:checked => false} )) %>
It is disabled allright, but it is always uncecked. Is this supposed to
happen. It looks like
(day.monday == true ? {:checked => ''checked''} : {:checked => false} )
is not
2006 May 07
1
Anyone care for a braindump?
I have this problem with records that have to be alligned on end- and
startdate. I came up with the following. but am not convinced that this
is the best way to tackle this problem. Anyone care for a braindump?
def head_to_tail
# Remove days that have startdate >= self.startdate AND enddate <=
self.enddate
#
# before after
#
# |=====| |=====|
2006 May 26
0
Hellp needed with sublist plugin
Is there somebody out there who has built a working thingy with the
Sublist plugin? I can''t get it to work. I get this error message:
undefined method `stringify_keys!'' for "2005":String
RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace
E:/Programmeren/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb:1506:in