similar to: Build a planning avalabilities

Displaying 20 results from an estimated 40000 matches similar to: "Build a planning avalabilities"

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
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
2010 Mar 21
3
Error in the code Doube Render (colins')
Hi everyone, i followed colins example and it worked perfectly but now i get this error ActionController::DoubleRenderError in UserController#login Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to
2010 Nov 20
6
syntax error, unexpected tSTRING_BEG
Rails is throwing this error C:/Ruby/Depot/app/views/products/index.html.erb:28: syntax error, unexpected tSTRING_BEG, expecting keyword_do or ''{'' or ''('' ...er.privilege == 50 ? {link_to ''Show'', product} : ''a'' );@out... in line <%= current_user.privilege == 50 ? {link_to ''Show'', product} :
2012 Aug 17
3
Rails doesn't validate create_model or build_model (has_one association)
I''ve got User has_one Shop. Rails is not validating when I tried create_shop or build_shop, neither in the browser nor the rails console. My code: class Shop < ActiveRecord::Base attr_protected :user_id belongs_to :user validates_presence_of :name, :primary_address, :city, :country_code, :currency end class ShopsController < ApplicationController before_filter
2013 Sep 23
0
[LLVMdev] Cambridge LLVM Social - September (+US Dev planning)
Folks, This week we have another light social, at the Cambridge Blue, since chances of rain are around 110% +- 10%. As usual, Wed, 7:30pm. If you haven't subscribed our calendar yet, please do: https://www.google.com/calendar/embed?src=as5fh066i94qthrkct1lv7rojo%40group.calendar.google.com&ctz=Europe/London Now, for a bit of planning... The US meeting will be on 6-7 Nov. We'd
2012 Apr 10
6
User Association
Please Im trying to create an application where i can post like twitter, but i was the users name to be posted under their respective posts My Post_controller looks like this def index @posts = Post.all(:order => "created_at DESC") @users = User.find(:all) #@user_id = current_user.find(params[:id]) respond_to do |format| format.html end end def create
2012 Jun 30
5
Problems with associations
Hello guys, I have two tables, tasks and projects, and each model I put: Task.rb class Task < ActiveRecord::Base attr_accessible :user_id, :project_id, :name belongs_to :project end Project.rb class Project < ActiveRecord::Base attr_accessible :name, :description has_many :tasks end But when I go to my prompt and I make a SELECT with task, none project is returned.
2010 Jun 15
3
RoutingError
hi, can anyone help me. i want to create an url to invoke create action of a controller. routes.rb has the routes. But i am getting error at line 23. i have @user variable. user_contact_path(@user.id) I want generate url as : users/3/contacts to invoke contacts controller''s create action ---------------------------------------------------------------------------------
2012 Jan 18
2
Polymorphic and standard association issue
Hello all, I''m having a strange issue with a model that belongs_to two other models. The one association is polymorphic and the other is normal. ================================ class Role < ActiveRecord::Base belongs_to :user belongs_to :permission, :polymorphic => true end class User < ActiveRecord::Base has_many :roles has_many :programs, :through => :roles end
2010 Jan 25
0
has_many, :finder_sql, setting attributes
Hi all, My question is somewhat complicated, but bear with me. My project has a number of models: User, Program, and Team. Users belong to multiple Programs. Programs have multiple teams, but Teams belong to one program. For each Program a User belongs to, he can belong to multiple Teams. (Think of this in an athletic context where users are athletes, programs are universities). So my
2010 Feb 16
0
Strange routing(?) Issue
I have a Model event and the following two lines in routes.rb 1 - map.connect "events/:action", :controller => ''events'', :action => / [a-z_]+/i 2 - map.resources :events, :has_many => :comments, :has_one => :address #, :collection => {:mapit => :get} I have #1 so that I can call custom actions from a link_to_remote link from my index page t0 update a
2011 Jan 24
11
Can't get login to work
Hi, could anybody help me try to get a login function working, I have created a database for users called user1, I have the login screen set up but when i hit login with a correct username and password, nothing happens I am expecting the lgin button to direct the user to the main page and show the user as logged on, but nothing happens! Thanks! Controller class User1Controller <
2010 Dec 22
2
Scheduling Plugin
Hi, We are looking for a calendar scheduling solution that supports recurring events. Some specific requirements are that we need to be able to setup recurring events, then modify one of those events on a certain day by deleting it for example. Basically, we want the back end for a Google Calender type functionality. Ive dug around in GitHub and there are tons of recurring plugins but not many
2010 Nov 30
4
Cucumber+Capybara rails 3 issue (Don't know where exactly)
When I''m executing cucumber tests, I noticed that sometimes rails app (in test env.) getting several the same requests (GET or POST) usually around 3, and it doesn''t render anything with empty HTTP status code. Have anyone met something similar to that issue? here is some example of log file: Started POST "/account" for 127.0.0.1 at 2010-11-30 22:34:17 +0200
2012 Oct 17
1
generate 10 UUID records and save it it database in rails
I need to create certain number of UUId records(based on the selection of drop down) and save it in the database. Now I am generating only one unique id. Can this be done in the model in this way. Or do I need to write a helper file for that?? def generate_unique_token=(value) self.secret = Base64.encode64(UUIDTools::UUID.random_create)[0..8] end In my controller........... def create
2010 Jul 13
1
NoMethodError in UsersController#show
So I am getting the error NoMethodError in UsersController#show error undefined method `feed'' for nil:NilClass {"authenticity_token"=>"zalkdfsjfksjd;lfs;lfksdkf/2tPzo=", "login"=>"session", "password"=>"admin", "commit"=>"Log in"} Why is login being set to "session"? Instead of the
2012 Apr 09
8
Rails Functional Testing Problem
I''m trying to run some functional tests on Rails. However I am coming up with the following error. RuntimeError: Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id app/controllers/posts_controller.rb:11:in `create'' posts_controller_test.rb:5:in `test_should_create'' Here is my test file require
2011 Feb 22
0
Arel: misunderstanding with intersections
Hi, I''ve been playing with Arel for a few days, but I feel really confused about predicates / arrays intersection. Let''s say I have 3 models: users, (bank) accounts and transfers. An account belongs to a user, and a transfer is made of a source and target accounts (see the snippets below). Given a user, I want to query his transfers. I can go this way in the User class: def
2011 Mar 14
0
Problems with viewing my calendar
Hey dudes, i''m trying to build a small calendar into my app. I follow the steps shown in http://railscasts.com/episodes/213-calendars, so i go with the table_builder gem, which allows to use the calendar_for command. But unfortunately it doesnt work or rather show the results in my view-template. I even got no error-message. It only shows this: (twice!!?!) Calendar < March 2011 >