Copying HTML from Dreamweaver to RadRails
I am using RadRails at this time to handle the layout views for Ruby on Rails.
I have been getting some invalid characters when I run my Ruby on Rails project, and it is because of some invisible characters that apparently got copied over to RadRails via Dreamweaver.
I solved this by removing all the whitespace. This won't be acceptable though, so what solutions are on the table for me?
Is there a Dreamweaver conversion I can do to make the HTML in a character format that is good for RadRails or rails....
Why bother using Dreamweaver to write your HTML and CSS? Just do it directly in RadRails.
This has been fixed. Dreamweaver has its own way of doing "tabs" and spaces versus other applications, however that can be fixed by applying "source" formatting.
Also, if you have a long HTML file already done, it wouldn't make much sense to retype it just for Rails. I was just looking for a quick fix.
I'm not saying retype it, I'm just saying do it in RadRails in the first place...future reference and all that
Thanks Luke for the helpful posts.
I guess jag is a bit like me.
He feels more comfortable creating the layout in a WISYWYG fashion.
I'm also a dreamweaver addict starting out with RoR using Radrails so I'm also trying to shift my paradigm.
This forum helps a lot.
To be honest, my experience of creating layouts in Dreamweaver does not create very nice semantic code. My advice would be to learn how to code HTML and CSS yourself. Its not hard, certainly not compared to programming an app on the server side. If you want to learn how to write RubyOnRails you should at least know how to design standards-compliant pages using XHTML/CSS IMO.
i agree with this. I'm getting the hang of it.