similar to: Retrieving :id without passing it

Displaying 20 results from an estimated 300 matches similar to: "Retrieving :id without passing it"

2006 Apr 07
2
errors.add_to_base
What are the limitations on using: errors.add_to_base to display errors in views? I have tried for days to add errors from my object.rb and they never get displayed. class Keyword < ActiveRecord::Base validates_presence_of(:name, :message => "Name is required.") validates_uniqueness_of(:name, :message => "This name is already in use. Please try
2011 Mar 21
1
Getting user session object in cucumber
Hi, I am learning cucumber. I have integrated the Devise with my rails 3 application. My problem is I have to write a test which will create a project. For that I have to make sure that user should be logged in. So I have written the user login feature first which is working fine. After that I have written the creation of project scenario. Whenever I am running that scenario we are getting an
2007 Jul 24
4
spec''ing helpers that use controller
Hi all, I''m in the process of creating rspecs for my helpers. One of the helpers in app/helpers/application_helper.rb looks like this: def page_name @page_name || "Define @page_name in #{controller.controller_name}::#{controller.action_name}" end The rspec is simply: it "should something" do page_name end
2006 May 03
6
ActiveRecord and Lost Connection
This isnt totally a rails question; I am using ActiveRecord for storing some simple values into a database. My problem; I keep gettign MySQL Errors. On the Win32 machine it was off and on. Now on the linux machine (ubuntu) I can'' t connect at all. I have all the password settings correct. My only thought, I am working with Threads and thought that might cause the issue, but I
2006 Jan 01
7
[ ANN ] Hieraki2
Happy new year! Hieraki 2.0.0 is released. You can download Hieraki2 from rubyforge.org as tgz or zip (http://rubyforge.org/projects/hieraki). Hieraki2 has a new wiki engine that ships with more than a dozen new features: * everything-is-a-wiki-page (TM) * all pages are under version control * access control list * stay in full control of the tree structure by cut and pasting
2007 Jan 23
0
validates_presence_of fields. in parent ok, but how in children?
i have the problem that my child class fileds aren''t validated on saving the parent. working with parent and child works without problems. if all fields are filled correctly everything is saved as expected. but missing fields in the child arent added to the errors. following short sample shows what i try: Model ----------------------------------------------------- class Parent <
2009 May 06
0
Cucumber, Webrat, RSpec and Mechanize for Non-Ruby Apps
The folks here have given me the task of figuring out if cucumber can be used successfully to test some of our apps. I have the latest versions of rails, mechanize, cucumber webrat and rspec installed. #/cuketest/features/google.feature Feature: New PC In order to get a sweet new PC As a apple nerd I want to find apple.com Scenario: Get a sweet new computer Given I visit
2008 Jun 04
12
Mongrel as Windows service with normal privileges
I am trying to run Mongrel 1.1.5 with mongrel_service 0.3.4 on Ruby 1.8.6 with a "normal" user account, i.e. a user which belongs only to the Windows group "Users". The rationale behind this is that running a web server with full administrative rights (e.g. Local System) is not something that I would like to do. Unfortunately, starting the service from the services control
2015 Aug 22
2
Russian wiki
On 22 August 2015 at 19:20, Ilyas Arinov <arinov.ilyas at gmail.com> wrote: > I have to update pages twice now to see its content. > > --> --> > > Traceback (most recent call last): > File "/usr/lib/python2.6/site-packages/MoinMoin/request.py", line 1207, in > run > handler(self.page.page_name, self) > File >
2007 Oct 01
0
View Spec - Misbehaving
I''m trying to write my first view spec; I''ve done some controller specs with integrated views, but thought that isolating the views for some of these tests might be nice. So I wrote this: > describe PlayerContainer, "show" do > > PARENT_ID = 12 > CHILD_NAME = ''Child Name'' > PARENT_NAME = ''Parent Name'' > >
2013 Jun 18
1
Rails 3 in action book: some files are not generated as written in the book
I''m reading "Rails 3 in action", chapter 3, p. 56. It is said that the Cucumber skeleton generator > rails generate cucumber:install has to also generate the definition for the first step of the Scenario "Given I am on the homepage" in the file "features/step_definitions/web_steps.rb" # file: features/step_definitions/web_steps.rb Given /^(?:|I )am on
2006 Apr 21
5
installing hieraki help
Ahoy, I tried to install hieraki and it was a big mess. 1) upload_progress module needed to be installed 2) no test/development server configured in the config file so i had to add those 3) no log directory, had to add that 4) had to install 2 gems (ok fine) 5) once the server started, go to homepage and " NameError in Wiki/pageController#index uninitialized constant Node RAILS_ROOT:
2008 Mar 25
0
Questions about backgroundrb
Cc''ing to the list for archival purposes: On Tue, Mar 25, 2008 at 7:55 PM, Brian Noguchi <brian.noguchi at gmail.com> wrote: > Hi Hemant, > > I''m Brian Noguchi, a developer in the Bay Area. I have some questions about > backgroundrb, and I found your contact info on a forum. I figured its > probably best to get answers straight from the source. > >
2006 Mar 17
10
breadcrumbs?
Before I start down this road, has anyone done a breadcrumbs implementation they''d be happy to share? Thanks Chris T
2008 Nov 28
2
force channel hangup
Hi guys, I have 1 zap channel in my house shared among couple people. If someone dials 911, I want that zap channel to be disconnected right away to make way for the 911 call. I dug through voip-info.org and didn't find much. Any hints? kel
2005 Feb 22
1
Instiki @ O''Reilly ETech 2005
Hi all, Sorry if I should be posting this elsewhere--I couldn''t find an Instiki specific mailing list, but the Instiki site is down. I wanted to mention that my friend Tim Lauer and I are going to be doing a short "high order bit" talk at the O''Reilly Emerging Technologies conference, describing a particular use of Instiki which we came up with:
2006 Jan 04
4
Problems with Hieraki 2
hi, I''ve already set up hieraki2 (database.yml: configured, schema.mysql.sql: imported). I noticed that there is no user (table "users" is empty) and I can''t login. So what should I do to use hieraki2? :) The title is "Root | Demo" - Why "demo"? I tried to create account called "root" using "signup" form. I''ve got
2008 Nov 29
0
asterisk-users Digest, Vol 52, Issue 81
I was cleaning and working on laptops most of the day. Check my logs, I did plenty of work. -----Original Message----- From: "asterisk-users-request at lists.digium.com" <asterisk-users-request at lists.digium.com> To: "asterisk-users at lists.digium.com" <asterisk-users at lists.digium.com> Sent: 11/29/2008 1:13 PM Subject: asterisk-users Digest, Vol 52, Issue 81
2015 Aug 22
2
Russian wiki
I am not sure, but ru section fails to load now. Last changes was translating SIG section. Please, help to fix this issue. 2015-08-22 21:24 GMT+06:00 Ilyas Arinov <arinov.ilyas at gmail.com>: > Thanks. Now I can do it by myself. > > 2015-08-22 19:43 GMT+06:00 Alan Bartlett <ajb at elrepo.org>: > >> On 22 August 2015 at 14:37, Akemi Yagi <amyagi at gmail.com>
2008 Jul 22
1
Looking for a more robust Click to Dial/Web Dial solution than AsteriDex (potential for a bounty!)
I realize this may be less of an Asterisk question and more of a... well... everything but asterisk, but still relating to asterisk question. I was looking for a Click to Dial/Web Dial solution and I found AsteriDex. I'm looking for something I can use on the road where I can hit an internal Click to Dial/Web Dial page from my cell, tap on a number and have it bridge a call between