Displaying 20 results from an estimated 31 matches for "dom_id".
Did you mean:
dom_sid
2006 Oct 26
2
Mocha and SimplyHelpful
Hi,
I''m getting a conflict between the Mocha plugin and the Rails
SimplyHelpful plugin.
For some reason the dom_id method from SimplyHelpful is not being
found in my views when the Mocha plugin is installed. The dom_id
method if used in the controller works properly.
This is the error I get when running the tests:
1) Error:
test_truth(HmmControllerTest):
ActionView::TemplateError: undefined method `dom_id...
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
--~--~---------~--~----~------------~-----...
2006 Jun 21
2
Using RJS to highlight one LI if using insert_html on an UL?
It seems common to use RJS for quickly adding and highlighting a list
that is having content added to it like this:
http://rafb.net/paste/results/Z3m32g48.html
... where "my_list" would be an UL and the partial would insert a LI.
Given that example, is there an easy way to highlight only the newly
inserted LI instead of the whole UL? The only way I can see to do it is
to give
2007 Jul 05
6
mocking methods in the controller.
Hi,
I''m very new to rspec so please be patient with me.
I''ve tried to take some of my tests out of the controller specs to check for
things that are rendered.
This has not worked so well, since my views have the controller method
current_user
in quite a few places.
Is there any way that I can define this so that my views will be executed?
Will this same thing occur for all
2006 Feb 14
1
in a domU, 6 network interfaces wanted, only 3 seen
...irtual 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 domU, I get these lines in syslog :
Feb 14 15:10:14 athena kernel: #### netfront can''t alloc rx grant refs
Feb 14 15:10:14 athena last message repeated 2 times
I''m pretty sure it is related.
Does somebody h...
2009 Nov 18
4
rails newbie : routing error
...>
3: name :<br />
4: <%= er.text_field :name %>
I have the @e1 defined correctly in the controller (how can it work
when I go to the new page directly using localhost:300/expenses/new ).
And the trace :
vendor/rails/actionpack/lib/action_controller/record_identifier.rb:
72:in `dom_id''
vendor/rails/actionpack/lib/action_view/helpers/
record_identification_helper.rb:16:in `dom_id''
vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb:264:in
`apply_form_for_options!''
vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb:248:in
`form_for...
2008 Feb 13
6
trouble updating partial from collection
...rying to
change some of the contents of the partial when user changes the year.
I''m using this in the view:
<%= select_tag :year,
options_for_select(recent_years, @year),
:onchange => remote_function( :url => {:update
=> dom_id(product),
:action =>
''year_selection_changed'',
:product_id
=> product.id,
:company_id
=&g...
2008 Jan 03
0
remote_form_for with auto_complete_field
...n 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 id="<%=filter_criterion.dom_id%>">
<% remote_form_for :filter_criterion, :html => {:id =>
filter_criterion.dom_id + ''_form'' } do %>
<%= text_field :search, :oid, :size => 20, :value => result %>
<div class="auto_complete" id="search_oid_auto_complete&...
2009 Dec 13
0
r65 committed - Use the GeoCommons addOverlay method
....Maker.finder_host=''http://localhost:4001'';
- F1.Maker.core_host=''http://localhost:4000'';
-
this.loaded[this.api] = false; // Loading will take a little
bit.
-
- url = "1";
- new F1.Maker.Map({map_id:url, dom_id:this.element.id,
- flashvars: {"map_id":url},
- onload: function(map){
- me.maps[me.api] = map;
- // f1_swfobject21.getObjectById(this.element.id);
+ F1.Maker.core_host = f1_core_host;
+ F1.Maker.fin...
2006 Jul 31
4
Login Password text field values
I have a text field that I use for logging in users. Due to the design
of my site, I don''t have room to put the word "username" in front of the
text field so I''d like to actually display it inside the field and then
have the word clear when the user clicks on it.
How could I modify something like this
<%= text_field "user", "login", :size
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 "xm dest" the dom manually by force, and run "xm restore 1.save",
for Windows 2k3, a white Qemu window always pops up - maybe the domain
is still running...
2007 Jul 16
0
Ajax works in FF but not safari!
...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 => @school.programs)
page[@program.dom_id].visual_effect(:highlight, :duration =>
1)
page[:program_form].reset
end
end
end
VIEW - index.rhtml
<div class="programs">
<ul id="program_list">
<%= render :partial => ''program'', :collection =&...
2011 Mar 02
0
polymorphic_path not getting generated
...has_many :forums, :as => :forum_owner
end
Now in the index.html.erb for forum I had the following line
<%= link_to t(:view), forum_topic_path(:forum_id => forum, :id
=> forum.recent_post.topic_id, :page =>
forum.recent_post.topic.last_page, :anchor =>
forum.recent_post.dom_id) %>
This line generates "http://127.0.0.1:3001/forums/1/topics/1?
page=1#posts-1" as the url. To make it polymorphic, I need the schools
in the url so the url needs to change to "http://127.0.0.1:3001/
schools/1/forums/1/topics/1?page=1#posts-1". So I replaced the above
line...
2006 Dec 25
1
Urgent - Setup DoveCot with Plesk
...at('/var/qmail/mailnames/', d.name, '/', m.mail_name) as home, concat('/var/qmail/mailnames/', d.name, '/', m.mail_name) as mail, 101 AS uid, 12 AS gid, 'dirsize:storage=1000000' AS quota FROM accounts a, mail m, domains d WHERE a.id = m.account_id AND d.id=m.dom_id AND m.mail_name='%n' AND d.name='%d'
I manully fill in %n=admin and %d=test.com to test it and it worked fine
The result is:
home,mail,uid,gid,quota
"/var/qmail/mailnames/test.com/admin","/var/qmail/mailnames/test.com/admin","101","12","...
2009 Jan 09
1
Is there a problem with webrat?
...lt;tr>
<td colspan="1" style="width:40em;">This Is a Bare Entity</td>
</tr>
<\div>
I have this in my test:
my_entity = Entity.find_by_entity_name(
"my entity number #{row.hll_words_to_i}")
within("div#" + dom_id(my_entity, :list)) do
puts "within method executed for div"
end
within("div#" + dom_id(my_entity, :list)) do
click_link "Destroy Entity"
end
The first within method prints the trace message
The second within method call blows up with:
within method...
2010 Oct 19
0
Ajax & Table Display Filtering based on Selected Option
...he user selects a category
from the drop down menu, Ajax kicks in such that the table (not the
entire page) will be updated with just the products that have category
equal to the selected category (i.e. a filtering operation).
1.
File "_index.html.erb" has,
<table id=''<%= dom_id(@department, :products) %>''>
<thead>
<tr>
<%= select_tag("filter_by_category",
options_from_collection_for_select(Categories.find(:all, :order =>
''name''), :name, :name) %>
<%= observe_field("filter_by_catego...
2006 Feb 24
2
domain id
Hi All
I am a newbie to the xen community and I am facing some crashes due
to my code changes.
A quick question: When i start a new domain with id being set to say
"VM100" (the id that is shown in the xm list ouput), whats the id that
will be stored in the domain structure? i.e
struct domain *d ;
d->id ??
Any help will be appreciated.
Thanks
Jaikumar
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 app/views/admin/users/enable.rjs
7: page[@user.dom_id].visual_effect :drop_out, :afterFinish =>...
2010 Feb 20
23
Rails 3 possible bug in Routing
Hi, I just ran into this ActionController::RoutingError and just
wanted to check if someone can confirm this as a bug in the Rails 3
beta gem.
config/routes.rb contains:
get ''login'' => ''session#new''
post ''login'' => ''session#create'', :as => :login
GET /login works fine:
Started GET
2008 Apr 04
8
Grant tables
Hi,
I need to use the grant table mechanism, but I can''t find any example
regarding how to do it. Could you please provide some examples?
Thanks
Carlo
--
È molto più bello sapere qualcosa di tutto, che sapere tutto di una cosa.
Blaise Pascal
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel