search for: _form

Displaying 20 results from an estimated 283 matches for "_form".

Did you mean: form
2009 Aug 04
3
[PATCH server] require at least one vm network if pxe booting
--- src/app/models/vm.rb | 2 ++ src/app/views/vm/_form.rhtml | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+), 0 deletions(-) diff --git a/src/app/models/vm.rb b/src/app/models/vm.rb index 3e0a6fa..9d326ac 100644 --- a/src/app/models/vm.rb +++ b/src/app/models/vm.rb @@ -464,6 +464,8 @@ class Vm < ActiveRecord::Base self.stor...
2006 Apr 29
1
can i alter the _form.rhtml without have troubles to validat
hello my name is reynaldo and i have a problem i alter the _form.rhtml to display a select option in the place a simple text_box, and the application work very well, but in the moment that i apply a validation in the model i get a error. the code is the next in the controller: def new @catelemento = Catelemento.new @komandancias = Catcomandancia...
2009 Jun 07
6
Missing Template when testing with the Brain Buster Captcha partial
When I run my functional tests, they throw an error with the following message: ActionView::TemplateError: Missing template /_captcha.erb in view path app/views:test/vendor/plugins/brain_buster/views/brain_busters On line #23 of app/views/contacts/_form.html.erb 20: <%= f.label :message %><br /> 21: <%= f.text_area :message %> 22: </div> 23: <%= render :partial => ''/captcha'' unless action_name == ''edit'' %> 24: <div><...
2006 Feb 27
8
Newbie question - Automatically update _form.rhtml?
...he author adds a new field in his database, refreshes the browser and shows the updated form with the new field. Okay, maybe I''m missing something, but I can''t, for the life of me, figure out how this is done. I''ve actually poked the system enough to realise that the _form.rhtml file is controlling this snipped, and that it''s not updating when I update my database. Am I missing something here, or do I have to manually regenerate _form.rhtml on database updates? I''m running the newest Rails/Ruby (downloaded last week) on Lighttpd on my Gentoo Li...
2008 Jan 08
3
What happened to _form.rhtml partial in rails 2.0??
Just wondering if anyone could point me to a good explanation of why the latest way of doing things does not include using something like _form.html.erb partials in RESTful rails 2.0?? Why did we move away from partials, etc?? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails...
2006 Jun 19
10
text_field_with_auto_complete doesn|t work in edit/show view
Hi, I am using the autocomplete for text field with ''Scriptaculous'' and it works perfectly fine in "new" action. All the examples I see are only for the "new" action. But doesn''t default to the selected value/text in "edit/show" action? Is this possible or should I write custom code for "edit/show" action? Thanks, Hari --
2010 Sep 02
1
[PATCH 1/1] Introduce an option to always pxe-boot a vm.
Previously, a pxe-booted vm would always boot to HD at next startup. Signed-off-by: Nicolas Ochem <nicolas.ochem at alcatel-lucent.com> --- src/app/controllers/vm_controller.rb | 1 + src/app/models/vm.rb | 15 +++++++++++---- src/app/views/vm/_form.rhtml | 2 +- src/task-omatic/taskomatic.rb | 13 +++++++++++-- 4 files changed, 24 insertions(+), 7 deletions(-) diff --git a/src/app/controllers/vm_controller.rb b/src/app/controllers/vm_controller.rb index 88e13ab..8e99b67 100644 --- a/src/app/controllers/vm_controller.rb ++...
2006 Aug 07
0
select da tabella in _form.rhtml
Ben trovati. Ho questa _form : <%= error_messages_for ''requirement'' %> <!--[form:requirement]--> <p><label for="requirement[structure_id]">Struttura</label><br/> <%= @structures = Structure.find(:all, :order => "nome").map {|f| [f.nome,f.id] }...
2005 Dec 09
1
No comprendo - scaffold producing strange results
Hi: I have a working invoicing application. All was well. Then I added another table to the database. Following that I use script/generate scaffold User I was hoping that this would generated the usual stuff but just for this model. It did. I can see all the views including _form, new, list etc. However, athough I can access list as per normal, when I try to create a new user it complains that there is no _form template. This is odd because I can see it. I have deleted the _form file and rebuilt it - no effect. I have restarted the webserver - no effect. Anyone...
2006 Jul 21
0
Ajax page.replace_html model validation errors
I have the following setup: A model: that validates using helpers like: validates_presence_of, etc.. A view: called ''new'' which renders a partial The partial: _form which has error_messages_for and a form_remote_tag , submit_tag and end_form_tag An action ''create'': that gets executed via the submit_tag in the _form and which in case it can''t save, it renders a rjs template, that replaces the html in the view with the _form s...
2006 Jul 24
0
Ajax page.replace_html model validation render partial errors
Hi; I have the following setup: A model: that validates using helpers like: validates_presence_of, etc.. A view: called ''new'' which renders a partial The partial: _form which has error_messages_for and a form_remote_tag , submit_tag and end_form_tag An action ''create'': that gets executed via the submit_tag in the _form and which in case it can''t save, it renders a rjs template, that replaces the html in the view with the _form so as t...
2010 Sep 03
1
[PATCH] Adding some control over usages in the network creation/edition form
Signed-off-by: Simon COURTOIS <scourtois at linagora.com> --- src/app/controllers/usages_controller.rb | 13 +++++++ src/app/models/usage.rb | 2 +- src/app/services/usage_service.rb | 23 ++++++++++++ src/app/views/network/_form.rhtml | 56 +++++++++++++++++++++++++++++- src/config/routes.rb | 1 + src/public/stylesheets/components.css | 18 +++++++++ 6 files changed, 111 insertions(+), 2 deletions(-) create mode 100644 src/app/controllers/usages_controller.rb create mode 100644 src/a...
2010 Feb 25
2
[PATCH] Enhance vms display
...expense of UUID, Total Run Time & Load fields. Since those fields are often better displayed from a monitoring software, I have though it was acceptable. Signed-off-by: Loiseleur Michel <mloiseleur at linagora.com> --- src/app/controllers/pool_controller.rb | 6 ++-- src/app/views/vm/_form.rhtml | 10 ++++++-- src/app/views/vm/_grid.rhtml | 9 ++++--- src/db/migrate/044_add_vm_fields.rb | 34 ++++++++++++++++++++++++++++++++ 4 files changed, 49 insertions(+), 10 deletions(-) create mode 100644 src/db/migrate/044_add_vm_fields.rb diff --git a/src/app/co...
2006 Jan 31
2
How did I end up with read-only access?
I''ve generated the standard scaffolding half a dozen times on play databases on my own machine, but now I''m trying it for real against the team''s development database (postgres) and I see to have ended up in some sort of read-only mode. "list" will show my existing records and "show" will drill down, as expected, but "New" or
2006 Apr 24
4
creating a select box
Hi trying to create a select box in _form.rhtml. I have a table called organisations that contains fileds, 2 being ''id'' and ''name'' these are the fields I need to bring over to the clients _form.rhtml. whats the best way of going about that?? 2 ways i have seen suggested that I cant get to work -@org...
2005 Jul 06
2
Composite Views
Hello: How do you create a composite view? I have a form based on the model "contacts" which consists the following models: - organization - person - address I was going to use partials to create the form; e.g: - organizations/_form.rhtml - people/_form.rhtml .etc ...and render them with the appropriate tag: <%= render_partial ''people/form'', @person %> I wanted to pass a person for use with the text field helper: <%= text_field ''person'', ''first_name'' %>...
2010 Aug 25
2
[PATCH] Virtio support
From: Simon Courtois <scourtois at linagora.com> Signed-off-by: Simon Courtois <scourtois at linagora.com> --- src/app/controllers/vm_controller.rb | 19 ++++++++++++++++- src/app/views/vm/_form.rhtml | 25 ++++++++++++++++++++--- src/db/migrate/044_add_virtio_to_vm_and_nic.rb | 11 ++++++++++ src/public/stylesheets/components.css | 5 ++++ src/task-omatic/task_vm.rb | 10 ++++++++- src/task-omatic/taskomatic.rb |...
2006 Feb 03
2
_form rendering question for adding multiple child objects
Hi I have been following a thread here.. http://www.ruby-forum.com/topic/new?forum_id=3 but it did raise some new curiosities that I hope someone can help address here :) In particular it is with Duane''s super secret hack that works for multiple child objects > There''s a super-secret and mostly undocumented way of doing this > that''s kind of handy, actually.
2006 Mar 17
6
Problem with ruby 1.8.4 One-Click Ruby Installer on windows
...talled One-Click Ruby Installer 1.8.4-16 preview3. Then installed rails, rmagick, radrails, created docs for trunk version of file_column plugin, everything works. But when i try to display any page i get lots of errors like these: compile error ./script/../config/../app/views/admin/properties/_form.rhtml:56: parse error, unexpected tCONSTANT, expecting kEND ./script/../config/../app/views/admin/properties/_form.rhtml:57: parse error, unexpected $, expecting kEND ./script/../config/../app/views/admin/properties/_form.rhtml:62: Invalid char `\002'' in expression If i remove spaces a...
2009 Jul 24
2
[PATCH server] add collapsable sections to vm form
...patch simply add collapsable sections to the form, making the 'storage' and 'network' sections collapsed by default credit goes to jayg for contributing alot to this patch in terms of simplification and cleanup --- src/app/helpers/application_helper.rb | 4 +- src/app/views/vm/_form.rhtml | 35 ++++++++++++++++++++++---------- src/public/stylesheets/components.css | 1 + src/public/stylesheets/layout.css | 11 ++++++++- 4 files changed, 36 insertions(+), 15 deletions(-) diff --git a/src/app/helpers/application_helper.rb b/src/app/helpers/application_helper...