Displaying 20 results from an estimated 2000 matches similar to: "Where to put the code? Helper or Model?"
2006 Feb 10
14
dynarch calendar and calendar helper usage
I am playing around with this and reference this wiki from RonR site...
http://wiki.rubyonrails.org/rails/pages/CalendarHelper
The error I am getting is:
NameError in Placements#list
undefined local variable or method `date_format'' for
#<PlacementsController:0xb78f9ef4>
RAILS_ROOT: script/../config/..
Application Trace | Framework Trace | Full Trace
2007 Jul 17
2
Plugin Problems: const_missing: uninitialized constant Rails::Initializer::CalendarHelper
I''m receiving this error when I try to start Mongrel on my local
machine. I''ve checked my Rails, Rake, and Gem versions, as well as all
of the other gems I''m using.
http://pastie.caboo.se/79503
The situation is that I simply started an empty Rails app and
generated an empty plugin. I added the plugin into the
ActionView::Base class in init.rb and really only added one
2010 Aug 13
5
"uninitialized constant" Error for CalendarHelpper
After installing calendar_helper-0.2.3 gem, application using
CalendarHelper works fine. Then I tried to test using rake command which
gave me the following error.
Why does these messages appear evenif the application owrks fine.
------------------------------ Error Messags
--------------------------------------
/usr/local/jruby-1.5.1/bin/jruby -I"lib:test"
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 Sep 18
2
Schedule+ calendar success story
Hello,
Maybe interesting for other people googling the web:
I have Schedule+ 7.0 working under Wine 20050310 (comes with Debian
Sarge). This program is bundeled with all versions of Microsoft Office,
(mine comes from Office95) but most of the time hidden on the CD. It can
be used as a shared calendar. I copied the directory "Schedule"
directly, no setup program.
Important is, that you
2006 Jul 15
6
calendar_helper
Hi, anyone ever tried the calendar plugin?
i can''t get it to work:
i did:
ruby script/plugin install
http://topfunky.net/svn/plugins/calendar_helper
ruby script/generate calendar_styles
and then generated a controller calendar_controller with a method
def monthly
end
in monthly.rhtml i put:
<%=calendar(:year => 2005, :month => 6)%>
if i try to run i get:
undefined
2006 Jul 11
5
What are people using for date fields
I''m just curious about what techniques others have successfully used to
capture date data on forms as an alternative to the standard date_select. I
have to admit I''ve been lazy and only used the date_select as we have very
few dates in our system now, but that is about to change. I would like
something better.
Any thoughts?
--
Thanks,
Sam
-------------- next part
2016 Mar 19
1
[PATCH] tests/qemu: Add program for tracing and analyzing boot times.
---
.gitignore | 1 +
tests/qemu/Makefile.am | 22 +-
tests/qemu/boot-analysis.c | 1098 ++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 1118 insertions(+), 3 deletions(-)
create mode 100644 tests/qemu/boot-analysis.c
diff --git a/.gitignore b/.gitignore
index 1493011..9306a19 100644
--- a/.gitignore
+++ b/.gitignore
@@ -510,6 +510,7 @@ Makefile.in
2012 Mar 20
0
Google calendar is not working properly with gcal4ruby (0.2.6)
I''m using
Rails - 2.2.2
gcal4ruby (0.2.6)
I''m using google calendar to display events for users in my website.
Till 18-march-2012 everything was working fine. But now whenever user
add events to the calendar it show only busy in the calendar.
My code is
def add_event
user_id = current_user.id
service = GCal4Ruby::Service.new
2005 Jun 21
3
dynarch calendar problem when used with ajax
I''ve got a partial with a form using the dynarch calendar
(calendar_field behavior). Working.
Now I render this partial from the action specified in to a link_to_remote.
Now when I click the calendar it''s not showed anymore.
theese lines:
<%= stylesheet_link_tag ''calendar-system.css'' %>
<%= javascript_include_tag ''calendar'',
2006 Aug 18
6
Prevent user from accessing an image
Hello,
I''m using file_column to save my users images.
It''s all OK, but I want to prevent one user from accessing other user''s
image.
Is it possible, as the image is saved in the file system ??
Thanks
Parra
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2010 Nov 05
3
non event_calendar
What am I missing here, trying to get the event_calendar plugin working
with my existing app. Have installed the plugin, which I guess is a good
start, then this...
class Booking < ActiveRecord::Base
has_event_calendar :start_at_field => ''arrival_date'', :end_at_field =>
''departure_date''
Route...
map.availability_calendar
2014 Mar 21
0
[PATCH RFC V2 4/4] tools: virtio: add a top-like utility for displaying vhost satistics
This patch adds simple python to display vhost satistics of vhost, the codes
were based on kvm_stat script from qemu. As work function has been recored,
filters could be used to distinguish which kinds of work are being executed or
queued:
vhost statistics
vhost_virtio_update_used_idx 1215215 0
vhost_virtio_get_vq_desc 1215215 0
2013 Aug 20
1
res_calendar / ownCloud
Hi,
I try to use res_calendar with ownCloud. While it works with google/ics,
I've some difficulties with caldav and ownCloud[1]. According to the
logs and tcpdump the calendar entries have been fetched but they are not
available in Asterisk. 'calendar show calendars' doesn't show the status
busy, 'calendar show calendar owncloud' doesn't show the current
events.
2007 Feb 07
2
How to set TZID in DTSTART?
Hello all,
I am currently evaluating the vpim libraries and like them very much.
However there''s one thing I can''t get done: How can I set the TZID
parameter for DTSTART/END dates so my encoded ICS file looks
something like this:
BEGIN:VEVENT
...
DTSTART;TZID=Eastern Time:20071201T080000
DTEND;TZID=Eastern Time:20071207T110000
...
END:VEVENT
I managed
2006 Jun 28
2
webcal url
Hi
I''d like to create a webcal link to share a calendar with iCal like
it''s done in Basecamp for example.
I know how to create the file using icalendar ruby library and iCal
can open it, but if I send this file using an url like webcal://
localhost:3000/ical/1151495837
iCal says that data are not valid.
Any ideas?
Thanks.
PS here is my rb code
def ical_data
cal
2008 Feb 27
2
All Day Events
I must be stupid because this cannot be this hard.
I''m trying to build an all day calendar event. In most clients it shows up as an entry at the top of the day rather than blocking out the whole day with an event.
I have a bit of code that looks like this...
cal.event do
dtstart DateTime.parse("#{startDate.year()}-#{startDate.month()}-#{startDate.day()}")
dtend
2007 Oct 04
0
any one use calendar_helper GEM?
I had been using the calendar_helper plugin previously which worked
fine. For my current project I decided to use the gem but am having
trouble getting it to work.
After install of the gem if I do:
>> require ''calendar_helper''
=> ["CalendarHelper"]
at the console it seems to load ok. However in the app when I do
require ''calendar_helper''
2008 Dec 30
3
integration of tzinfo with icalendar
My interest in icalendar is more on the ical generation side instead of
the ical parsing side. As such, I did a bit of work on a tzinfo mixin
that will generate the timezone rules based on the tzinfo gem. This
lets you do the following:
estart = DateTime.new(2008, 12, 29, 8, 0, 0)
eend = DateTime.new(2008, 12, 29, 11, 0, 0)
tstring = "America/Chicago"
tz =
2007 Mar 28
0
Where should I put cairo in order to build swfdec
Hi,
I am trying to build swfdec, but './configure' complains that it can't
find 'cairo'.
checking for CAIRO... no
configure: error: cannot find cairo, which is required for build
But I do have cairo:
$ ls -la *ca*
-rw-r--r-- 1 root root 317 Mar 1 2006 cairo-java.pc
-rw-r--r-- 1 root root 271 Mar 15 2006 cairo.pc
-rw-r--r-- 1 root root 333 Aug 4 2006 camel-1.2.pc