SitePoint Sponsor

User Tag List

Results 1 to 7 of 7

Hybrid View

  1. #1
    SitePoint Wizard jag5311's Avatar
    Join Date
    Jan 2003
    Location
    Somewhere in Indiana
    Posts
    3,082
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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....

    Thanks,
    Bryan

  2. #2
    SitePoint Guru silver trophy Luke Redpath's Avatar
    Join Date
    Mar 2003
    Location
    London
    Posts
    794
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why bother using Dreamweaver to write your HTML and CSS? Just do it directly in RadRails.

  3. #3
    SitePoint Wizard jag5311's Avatar
    Join Date
    Jan 2003
    Location
    Somewhere in Indiana
    Posts
    3,082
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

    Thanks

  4. #4
    SitePoint Guru silver trophy Luke Redpath's Avatar
    Join Date
    Mar 2003
    Location
    London
    Posts
    794
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not saying retype it, I'm just saying do it in RadRails in the first place...future reference and all that

  5. #5
    SitePoint Member
    Join Date
    Jul 2005
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  6. #6
    SitePoint Guru silver trophy Luke Redpath's Avatar
    Join Date
    Mar 2003
    Location
    London
    Posts
    794
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  7. #7
    SitePoint Member
    Join Date
    Jul 2005
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i agree with this. I'm getting the hang of it.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •