similar to: Nested forms, dynamic elements and valid xhtml/DOM ids

Displaying 20 results from an estimated 10000 matches similar to: "Nested forms, dynamic elements and valid xhtml/DOM ids"

2011 Nov 04
1
add dynamic nested attributes without nested form gem
Hello people In my rails 3.0.9 app I''m trying to add nested attributes dynamically, but I don''t want to use "nested form gem" So I found this example https://github.com/alloy/complex-form-examples/blob/a234fde4419836f277d7e340657f1d8418911d68/app/helpers/projects_helper.rb but this code doesn''t work module ProjectsHelper def
2006 May 24
2
Has Many Through + Join Model + Forms + Confused?
Hello, I''m trying to implement something like the following scenario. I''ve got "Alloys" (blends of metals), "Metals" and "Percentages" I want to implement this using a join model, not using a has_and_belongs_to_many relationship. (If i''m wrong about that, let me know). Basically, i have the following tables: Metals id name Alloys
2006 Apr 17
2
Building Dynamic DOM Element IDs for RJS Templates
My element IDs are constructed using the object id. So . . . <div id="foo<%= foo.id %>" > <p><%= link_to_remote "Do Foo", :url =>{:action => "do", :id => foo.id} %> </div> How do, and can I, build that id in the RJS template? Also, can anyone recommend a good Ruby syntax book that would help me out with Rails? I know
2006 May 24
0
Valid W3C XHTML Code?!
Hi there, i was just asking myself what i can do get my ruby site valid to the w3c specs. my biggest problem is the auto-generated html code of the link_to function which gives the form field an id value which includes an array. that rises the following error: Line 45 column 20: character "[" is not allowed in the value of attribute "id". <input
2007 Nov 10
0
Radiant 0.6.4 - Gem Shaper Release
Looks like it''s time for another release of Radiant: http://radiantcms.org/download/ This release contains a few major changes as well as numerous bug-fixes and enhancements. Included in the release are Rails 1.2.5, Prototype 1.6 and script.aculo.us 1.8. Significant refactorings have been done to the admin UI Javascripts, thanks to Mislav Marohnic. The release also provides better
2009 Jun 29
0
Problem with 2.3 nested forms and new elements
Hi, I''m using the new nested forms functionality and I having problems with new created elements. I have an invoice with lines. I would like to be able to create a new invoice, in the same form insert new lines dinamically and saving the invoice and the lines when everything is validated, not before. The problem is that when I add a line dinamically to the form, the new line created
2009 Sep 27
1
Switchboard - Easy to use global ActiveRecord event listeners
Switchboard is a simple, event-observing framework for ActiveRecord. It''s designed to make it easy to add observers for all models in your app, and to easily turn them on and off selectively. Intallation gem sources -a http://gems.github.com sudo gem install zilkey-switchboard Usage First, require switchboard above your rails initializer: # environment.rb require
2006 Jul 19
0
Form helpers produce invalid XHTML code!
Hi all The following scaffold creation form code... <%= start_form_tag :action => ''create'' %> <%= render :partial => ''form'' %> <%= submit_tag "Create" %> <%= end_form_tag %> ...creates this HTML colde: <form action="/en/bookings/create" method="post"> <!--[form:artist]-->
2006 Jul 22
2
XHTML validation for functional tests
Hi, Is there anyway to validate XHTML during functional tests? Thank you, Jean-Etienne -- Posted via http://www.ruby-forum.com/.
2004 Nov 29
2
problem with using transace
>I am trying to use the Hmisc function transace to transform predictors > > test<-cbind(flowstress,pressres,alloy) > xtrans<-transace(x,binary=pressres',monotonic='flowstress', categorical='alloy') > > >and I am getting the following message?? >Error in ace(x[, -i], x[, i], monotone = im, categorical = ic) : > unused argument(s) (monotone ...)
2005 Oct 28
6
InPlaceEditor: XHTML validation
It''s not a critical bug by any means, but shouldn''t InPlaceEditor put DIV tags around the INPUT field? From what I can tell on the W3C validator, INPUT has to be in a block-level tag for XHTML. Of course, there are probably a zillion other things that wouldn''t validate, but every little step helps... Corollary question: Anyone know how to see what contexts a tag
2008 Mar 12
5
XHTML validation
Is the dashboard output of 1.2.1 supposed to validate (I get numerous failures)? I''m seeing some issues that I hadn''t been running into before my upgrade. The first time I load the dashboard I''m seeing a blank area at the top and first button isn''t styled. When the refresh triggers the all of the projects except the first are duplicated and the
2011 Mar 02
2
Nested forms validation problem
Hi All, I''m trying to learn Ruby on Rails and have got an issue with the validation of a nested form. I think I have got it setup correctly as it appears to be saving the data as expected, but it is not wrapping the CSS class (field_with_errors) to the fields, and if data is entered into the nested fields it disappears on form submit (if there are validation errors). The validation
2008 May 06
1
getaddrinfo: Name or service not known
Hi I have just tried using ActionMailer to send mail in rails.For that i followed code from railcasts.And it worked also.But some times i am getting the error "getaddrinfo: Name or service not known"..Why this happens? Please help Sijo -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed
2008 Mar 14
1
Markdown doesn't always generate XHTML
Hello everybody, I've just noticed that markdown doesn't always generate XHTML. In particular the input <script src="http://evilserver.net/evil.js"> generates the output: <p><script src="http://evilserver.net/evil.js"></p> (This is the markdown dingus at daring fireball, and the markdownj implementation exhibits the same problem. I
2006 May 11
1
Doctype -- utf-8 -- html vs xhtml
I was simply trying to write the DOCTYPE line at the top for UTF-8 and got confused. What doctype do I use with rails for utf-8 files? If I put in all the damn closing tags on paragraphs and hr and br and all that will the stuff pass xhml inspection, or will rails insert something I haven'' yet noticed. Warren -------------- next part -------------- An HTML attachment was
2005 Nov 08
2
Scriptaculous insertion fails when XHTML Strict used in FireFox
Hi ! I'm getting an uncaught exception requiring the Scriptaculous libraries when everything says XHTML 1.0 Strict: class ApplicationController < ActionController::Base before_filter :set_content_type protected def set_content_type response.headers['Content-Type'] = 'application/xhtml+xml; charset=ISO-8859-1' end end <?xml version="1.0"
2006 Jun 08
0
Is possible to mantain a co0l blog without broke XHTML?
I started to write content in textarea in HTML then I migrated to BBCode, then I came back HTML thanks to TinyMCE, now I see with interest textile and markaby, but will they be "THE solution"? As "internal" language anybody is free to use the language he/she prefers but about the future? Probably you won''t be able to reuse it in another platform/cms Anybody wants
2011 Jan 05
1
e-pub or downloadable xhtml of the manuals?
http://samba.org/samba/docs/man/Samba-HOWTO-Collection/ This document has provided more information to me than I can adequately express, and as masochistic as it sounds, I'd kinda like to pop a copy on my nook and devour it. along with any of the other docs hosted on the samba website. has anyone prepared epubs of the documentation? if not epubs, than at least xhtml files in a zip
2009 May 27
0
Nested Forms with has_many associations with validations
I want to have a parent model that I can add child objects (via a has_many association) using the rails 2.3 nested form syntax. However, it seems like rails throws an error during validation of the parent model if I have a validates_presence_of :parent_id defined in the child model. Is the only solution to this to remove the validates_presence_of :parent_id? This seems like a hack-ish workaround.