Displaying 20 results from an estimated 800 matches similar to: "Problems with viewing my calendar"
2008 Jan 16
4
Calendar in Rails
HI All,
Please can anyone tell me whether there is a rails plugin/app that
allows creation of a calendar that can render events. I am not talking
about a calendar date picker of which there are several, but something
more along the lines of http://www.backpackit.com/calendar where an
html/css calendar can be rendered with dates highlighted.
Many thanks
Anthony
2009 Apr 07
4
/lib daemon folder: how do i add a module into the daemon?
I am using the daemons plugin.
I have just one problem how do i add modules from the /lib folder to
the /lib/daemons/daemon.rb file
eg. /lib/basic_functions.rb
this is the file i want to load in daemon.rb
contents daemon.rb:
#!/usr/bin/env ruby
# You might want to change this
ENV["RAILS_ENV"] ||= "production"
require File.dirname(__FILE__) +
2008 Apr 22
0
rspec model class methods
I''ve started specifying a project and could use some help. I''m not sure
if the spec is entirely necessary, it would be great to get some
guidance on a best practice or something close.
I recently realized the need to add the method below grouped_by_months
and started to write a spec.
idea 1:
{{{
before do
@comment = Comment.new
2012 Apr 12
6
beginning_of_month problem
Rails 2.3.2, Ruby 1.9.3
I want to get all records for one month from charges table.
recs = Charge.where(["date >= ? and date < ?", t.beginning_of_month,
t.next_month.beginning_of_month])
and this transforms into this query on PostgreSQL
SELECT "charges".* FROM "charges" WHERE (date >= ''2012-03-31
22:00:00.000000'' and date <
2006 Jan 26
1
end_of_month()
I noticed that
ActiveSupport::CoreExtensions::Time::Calculations::ClassMethods.end_of_month()
returns a new Time with the time set to 00:00:00. I expected it to return
23:59:59.
Am I missing something? Should this be changed?
Scott
2007 Nov 16
1
Missing methods patch for Time::Calculations
Time::Calculations provides methods like "end_of_month",
"beginning_of_year" and so on. But it lacks other related methods like
"end_of_week" and "end_of_year" that I think should be expected to be
there.
Here is a patch adding those methods: http://dev.rubyonrails.org/ticket/9312
+1''s?
Juanjo
--~--~---------~--~----~------------~-------~--~----~
2009 Feb 04
4
Rails 2.2.2 to_date and to_datetime methods
In the console I see this behaviour:
>> "19270412000000".to_date.methods
=> ["ns?", "mon", "ago", "end_of_month", "months_since",
"default_inspect", "minus_without_duration", ...
>> "19270412000000".to_date.class
=> Date
>> "19270412000000".class
=> String
>>
2007 Oct 29
0
partials with yield
I''m just wondering if you can use yield/closures in action view
templates, it''s kind of hard to explain so I''ll use an example:
<%= render(:partial => "table_builder", :locals => {:headings =>
["name", "id"], :collection => @users}) do |user| %>
#the partial build a table with the headings etc and then yields
here for
2018 Oct 21
4
AW: AW: Calendar function ?
I need the possibilities to Sync the calender with diffrent Clients like Outlook, LotusNotes, Android, and Iphone Devices.
-----Urspr?ngliche Nachricht-----
Von: dovecot <dovecot-bounces at dovecot.org> Im Auftrag von Marcus Rueckert
Gesendet: Sonntag, 21. Oktober 2018 15:28
An: dovecot at dovecot.org
Betreff: Re: AW: Calendar function ?
If you just need syncing without a fancy webclient:
2008 Oct 14
4
replace_html not working
hallo, everyone
can anybody help me? i did add my code under ENGINES as a module in a
project. before the change , all worked . and the differenz between
both is only about application''s environment,
before is
Ruby version 1.8.6 (i486-linux)
RubyGems version 1.1.1
Rails version 2.0.2
Active Record version 2.0.2
Action Pack version 2.0.2
2011 Aug 14
2
Central limit theorem
my data looks like this:
PM10 Ref UZ JZ WT RH FT WR
1 10.973195 4.338874 nein Winter Dienstag ja nein West
2 6.381684 2.250446 nein Sommer Sonntag nein ja Süd
3 62.586512 66.304869 ja Sommer Sonntag nein nein Ost
4 5.590101 8.526152 ja Sommer Donnerstag nein nein Nord
5 30.925054 16.073091 nein Winter Sonntag nein nein Ost
6
2011 May 13
4
unexpected results when extending methods to class Class and class Object
Hey all,
There''s a core Class class and core Object class in Ruby library:
http://www.ruby-doc.org/core/classes/Object.html
http://www.ruby-doc.org/core/classes/Class.html
First, let''s resolve the simple distinction between an Object and Class
as envisioned by Smalltalk but within the Ruby context:
#A class is a template used to define methods and properties
class Hello
2015 Jun 12
0
CFP The 11th International Conference on Computer Graphics Theory and Applications - GRAPP 2016
CALL FOR PAPERS
The 11th International Conference on Computer Graphics Theory and
Applications ? GRAPP 2016
Website: http://www.grapp.visigrapp.org/
February 27 ? 29, 2016
Rome, Italy
Regular Papers
Paper Submission: September 17, 2015
Authors Notification: November 12, 2015
Camera Ready and Registration: November 27, 2015
Position Papers
Paper Submission: October 29, 2015
2015 Jun 12
0
CFP The 11th International Conference on Computer Graphics Theory and Applications - GRAPP 2016
CALL FOR PAPERS
The 11th International Conference on Computer Graphics Theory and
Applications ? GRAPP 2016
Website: http://www.grapp.visigrapp.org/
February 27 ? 29, 2016
Rome, Italy
Regular Papers
Paper Submission: September 17, 2015
Authors Notification: November 12, 2015
Camera Ready and Registration: November 27, 2015
Position Papers
Paper Submission: October 29, 2015
2018 Sep 14
0
Occasional crash in db-auth.c (Valgrind: Invalid read of size 4 et al.), Dovecot 2.2.27+
On Sonntag, 28. Januar 2018 13:59:24 CEST Jonas Wielicki wrote:
> On Samstag, 27. Januar 2018 21:33:51 CET you wrote:
> > Hi thank you for these, can you send doveconf -n for your minimal
> > reproducer?
>
Has this been fixed in any release? I?m not sure how to figure this out,
unfortunately.
kind regards,
Jonas
2011 Feb 10
8
rvm install 1.8.7 prompts "There has been an error while running make. Halting the installation."
I want to work with both Rails 2 and Rails 3 projects.
I have RVM installed.
When I upgraded to Rails 3, Installed RVM via terminal:
bash < <( curl http://rvm.beginrescueend.com/releases/ … ll-latest)
version=$(curl http://rvm.beginrescueend.com/releases/ … sion.txt);
mkdir -p ~/.rvm/src/ && cd ~/.rvm/src/ && curl -O
http://rvm.beginrescueend.com/releases/ … on}.tar.gz |
2008 Apr 21
0
[LLVMdev] Reference Manual Clarifications 2
Am Sonntag, den 20.04.2008, 09:34 -0700 schrieb Jon Sargeant:
> Joachim Durchholz wrote:
> > Am Samstag, den 19.04.2008, 16:24 -0700 schrieb Jon Sargeant:
> >> First, I can assign -1 to
> >> the count to indicate an invalid or unknown value.
> >
> > This is a C-ism. In a language that supports discriminated unions well,
> > you'd do something like
2019 Mar 31
1
CentOS Repository broken ?
Hello,
I download and install it manual, this working now?
waiting for next update to found out, yum is working correct again ;-)
Thanks for answers,
Am Sonntag, 31. M?rz 2019, 13:59:17 CEST schrieb Kostya Vasilyev via dovecot:
> On Sun, Mar 31, 2019, at 2:30 PM, G?nther J. Niederwimmer via dovecot wrote:
> > Hello,
> >
> > Am Samstag, 30. M?rz 2019, 21:36:12 CEST schrieb
2008 Mar 06
4
Active Record Question
Hi-
Say I am returning some collection of DateTime items and I only want
to compare the month. Is there a way to do this directly in the find?
Something like this...
@coll = Collection.find(:all, :conditions => ["date.month
= ?",Time.now.lat_month])
Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
2006 Jun 08
2
how to add plugin to ActiveRecord
I''m trying to set a date field''s day to the last day of the month before
I save it. I can do this successfully now using this code:
class Account < ActiveRecord::Base
def before_save
self.exp_date = last_day_of_month(self.exp_date)
end
# Returns a Date object set to the last day of the current month
def last_day_of_month(date = Date.today)
next_month_str