Displaying 20 results from an estimated 100 matches similar to: "Mocha and SimplyHelpful"
2006 Dec 13
4
RSpec and simply_helpful
Hi All
I''m having some problems running my view specs when using
simply_helpful. I have it semi-working via the following:
module SimplyHelpfulHelper
def self.included(base)
base.send :include, SimplyHelpful::RecordIdentificationHelper
base.send :include, SimplyHelpful::RecordTagHelper
end
end
context "The index template" do
setup do
@shift =
2008 Jan 03
0
remote_form_for with auto_complete_field
Hi friends
I have problem with auto_complete_field.
I have used auto_complete_field with in the remote_form_for.
But when we enter the text in auto_complete_field two actions are
calling
1. auto_complete_field action
2. remote_form_for action
I need to restrict the form action when we enter text on
auto_complete_field
Could u give any ideas?
<div
2009 Dec 13
0
r65 committed - Use the GeoCommons addOverlay method
Revision: 65
Author: ajturner
Date: Sun Dec 13 11:10:04 2009
Log: Use the GeoCommons addOverlay method
http://code.google.com/p/mapstraction/source/detail?r=65
Modified:
/trunk/source/mxn.geocommons.core.js
/trunk/tests/index.htm
=======================================
--- /trunk/source/mxn.geocommons.core.js Sun Dec 13 11:10:00 2009
+++ /trunk/source/mxn.geocommons.core.js Sun Dec 13
2006 Feb 14
1
in a domU, 6 network interfaces wanted, only 3 seen
Hello,
I need 6 virtual interfaces in a domU (which will be our firewall). I''ve
created 6 bridges in dom0, configured everything correctly...
When I start the domU, it can only see 3 of them : eth0, eth1, eth2.
However, the bridges in dom0 are correctly configured, and I can see all 6
vifs (from vif<DOM_ID>.0 to vif<DOM_ID>.5) when using "brctl show".
On the
2008 Feb 13
6
trouble updating partial from collection
I have a view where I render a partial over a collection. Each instance
of the partial includes a <div> with an id specific to that instance.
Inside the partial, there is a select tag for "year". I''m trying to
change some of the contents of the partial when user changes the year.
I''m using this in the view:
<%= select_tag :year,
2011 Mar 02
0
polymorphic_path not getting generated
Folks,
I am trying to use the Savage Beast plugin in a polymorphic way. I
have setup my model as below
# Leaving out other details from models
class Forum < ActiveRecord::Base
has_one :recent_topic, :class_name => ''Topic'', :order => ''sticky
desc, replied_at desc''
belongs_to :forum_owner, :polymorphic => true # Helps keep track
of which
2007 Jul 16
0
Ajax works in FF but not safari!
The following code works perfectly in FF, but does not work in
safari.
I''m on Edge Rails with the latest javascripts. Any clue what''s going
on?
CONTROLLER:
def create
@program = @school.programs.new(params[:program])
if @program.save
render :update do |page|
page[:program_list].replace_html(:partial =>
''program'', :collection =>
2008 Feb 20
0
#dom_id should use AR#to_param instead of AR#id
Hi,
I have just commited a patch for ActionController''s #dom_id, it should
iternally use AR#to_param instead of AR#id, because #to_param is used
for routing representation of an ActiveRecord inside ActionPack.
You can found the ticket here: http://dev.rubyonrails.org/ticket/11179.
Luca.
--
blog: www.lucaguidi.com
--~--~---------~--~----~------------~-------~--~----~
You received
2006 Dec 25
1
Urgent - Setup DoveCot with Plesk
Hey, all,
I am trying to setup DoveCot with Plesk. But I could not go through the last step.
Setup:
MySQL 5.0.22
Qmail
Plesk 7.5
DoveCot v1.0 RC15
The problem:
I setup sql.conf for user query and password query. I tried different ways, DoveCot always says "Authentication failed".
Here are my two SQLs.
user_query = SELECT concat('/var/qmail/mailnames/', d.name, '/',
2009 Jan 09
1
Is there a problem with webrat?
webrat (0.3.4)
I have this in the view:
<div id="list_entity_1">
<tr>
<td>Just An Entity</td>
<td>000001</td>
<td id="show_entity_1"><a href="/entities/1">Show Entity</a></td>
<td id="edit_entity_1"><a href="/entities/1/edit">Edit
Entity</a></td>
2010 Oct 19
0
Ajax & Table Display Filtering based on Selected Option
My scenario:
On a department''s products page (index.js.rjs), there is a table
showing the products with their id, name, category. The view of this
table is specified by a partial file called _index.html.erb. I''m
going to add in a selection/option drop down menu above the table to
show all the product categories. When the user selects a category
from the drop down menu, Ajax
2007 Oct 23
2
to_json inconsistency?
Hello,
ActiveSupport::JSON::Variable.to_json is the only to_json without an
"options" parameter. Is this intended?
For example, this code in a .rjs
page[@user.dom_id].visual_effect :drop_out, :afterFinish =>
ActiveSupport::JSON::Variable.new("foo")
fails with
ActionView::TemplateError: wrong number of arguments (1 for 0)
On line #7 of
2009 Nov 18
4
rails newbie : routing error
After much ado about the naming of model adn controllers...
model : Expense
controller : Expenses
route : map.resources :expenses
Here I am using mysql database and created a unique index, since
db:migrated created an id object and made it as primary key. Now in
the
def create
@expense = Expense.new(params[:expense])
if @expense.save
flash[:viola] = ''New expense saved.. be
2007 May 14
1
Updating to Qemu 0.90 breaks save/restore
Save/restore is ok against staging tree''s changeset 15020: d2ef85c6bf84,
but is NOT ok against changeset 15021: 00618037d37d (Update to qemu
0.90).
I use IA32pae HV; both SMP Windows 2K3 and FC5 can''t be saved properly.
After "xm save dom_id 1.save" returns, Qemu window disappears, but "xm
vcpu-list" still shows the domain has not been killed.
If I
2008 Jun 06
0
link_to_remote
Hi All,
I attempting to add a simple AJAX link on my app, using the following code:
= link_to_remote "Vote Up", :url => votes_url(foo, :canvas => false), :update => "vote_#{dom_id(foo)}"
Unfortunately, this results in the following JavaScript error:
ln 74 on facebook''s converted facebooker.js:
a16056494085_options[idx("parameters")] has no
2008 Jul 28
0
"deprecated" error message in apache error log
I am seeing the "warning: Object#id will be deprecated; use
Object#object_id" message coming from ActionController in my apache
error log. I do not see it anywhere else -- neither the production nor
development rails logs.
Something is calling dom_id with something that is not an active record
I guess. How can I track down who is doing this?
I''m running Rails 2.1.
Thanks
--
2007 Sep 20
1
undefined method `request' for "products":String ?
Since updated edge yesturday i have had a series of errors related to
undefinded methods for "products":String.
I do have these controllers namespaced.
====
Errors example 1:
undefined method `request'' for "products":String
Extracted source (around line #2):
view:
<tbody>
<%= render :partial => ''admin/products/product'',
2011 Jul 02
2
Associating a statefile with an image
Hi ,
I am trying to perform offline migration (i.e) Create an incremental image using the qcow format, transfer the vm memory state to a state fie.Use the image and statefile together as a template. Now create a new vm using the template. I can successfully do it using the following commands :
Save phase :
stop
migrate "exec:gzip -c > STATEFILE.gz"
qemu-img
qemu-img create -b
2007 Jan 23
2
SslRequirements plugin and mocha
Hi. I''m loving mocha but have ran into a problem with using the mocha
plugin with a project that has the SslRequirement plugin. It seems
there is some conflict between the two? Any ideas?
$ ruby test/functional/calendar_controller_test.rb
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:478:in
`const_missing'': uninitialized constant
2008 Sep 23
0
答复: Re: 答复: RE: 答复:RE:
Hi all,
I have started stubdom, thank all of you. But I still met a problem, that is I found stubdom block when it run 107s. the message in "xm li" :
Domain-0 0 1719 2 r----- 171.9
hvmachine 1 256 1 -b---- 110.6
hvmachine-dm