I was previously doing an update via .rhtml templates creating an AJAX :evaluate_remote_response. I use UTF-8 in my pages, and my app requires that I be able to, say, put Japanese characters in. The problem is that when I switched this over to an RJS template it started eating the encoding. I now get garbage characters where before I got the correct ones. The code for the RHTML: <%= update_element_function( "front", :content => simple_format( h(@card.front_side))) %> <%= update_element_function( "back", :content => simple_format( h(@card.back_side))) %> and for RJS: page.replace_html ''front'', simple_format( h( @card.front_side ) ) page.replace_html ''back'', simple_format( h( @card.back_side ) ) If I go to the action manually and check, in the RHTML version it has the correct characters; in the RJS version it has the \312\342 escape codes. Any way to turn off the escaping?
Hi, I want to launch a rails application from a regular .html page. It works just fine with apache on my web host provider''s server but I can''t seem to figure out how to get the index.html to show up while I''m running lighttpd and using http://localhost:3000/welcome.html/ Seems like a dumb question, but any help would be appreciated. Denise
http://localhost:3000/welcome.html/ points to a directory called welcome.html/ I guess I am unclear on what you mean by "Launch a rails application from a regular .html page" ~ Ben On 3/15/06, Denise Eatherly <denise@kurisudesign.com> wrote:> Hi, > > I want to launch a rails application from a regular .html page. It > works just fine with apache on my web host provider''s server but I > can''t seem to figure out how to get the index.html to show up while > I''m running lighttpd and using http://localhost:3000/welcome.html/ > > Seems like a dumb question, but any help would be appreciated. > > Denise > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Ben Reubenstein http://www.benr75.com
Hi, What is mean is my ordinary everyday .html file has a form with a submit button and on the submit button is the url for a rails controller. If the user clicks the button, the rails controller evaluates values from the post and redirects him/her to the right page within the app. If the user never clicks the button, the rails app is never launched. Is that more clear? Thanks, Denise On Mar 15, 2006, at 1:38 PM, Ben Reubenstein wrote:> http://localhost:3000/welcome.html/ points to a directory called > welcome.html/ > > I guess I am unclear on what you mean by "Launch a rails application > from a regular .html page" > > ~ Ben > > On 3/15/06, Denise Eatherly <denise@kurisudesign.com> wrote: >> Hi, >> >> I want to launch a rails application from a regular .html page. It >> works just fine with apache on my web host provider''s server but I >> can''t seem to figure out how to get the index.html to show up while >> I''m running lighttpd and using http://localhost:3000/welcome.html/ >> >> Seems like a dumb question, but any help would be appreciated. >> >> Denise >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > > > -- > Ben Reubenstein > http://www.benr75.com > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Glad I could help ;) On 3/15/06, Denise Eatherly <denise@kurisudesign.com> wrote:> Ben, > > It was the Public folder! Thanks a bunch. I thought I had tried > that first, but I must have been wrong. That is exactly where it > needed to be. > > All my other rails apps have all their forms within the app/views, > but this is really just a little wisp of an application accessible > from the sidebar of a fairly complex form which is managed by the > designers. Most of the time the page will be viewed and the > application will never be activated. In fact, it is a good candidate > for some AJAX fun. > > Thanks for your help. > Denise > > > On Mar 15, 2006, at 3:59 PM, Ben Reubenstein wrote: > > > Hi Denise ~ > > > > I would still say that you need to access your file via > > http://localhost:3000/welcome.html and insure that the welcome.html > > file is in your public/ folder. > > > > Are you using a plain html file for SEO purposes? Why not use a > > regular action/view to create the form? > > > > ~ Ben > > > > On 3/15/06, Denise Eatherly <denise@kurisudesign.com> wrote: > >> Hi, > >> > >> What is mean is my ordinary everyday .html file has a form with a > >> submit button and on the submit button is the url for a rails > >> controller. If the user clicks the button, the rails controller > >> evaluates values from the post and redirects him/her to the right > >> page within the app. If the user never clicks the button, the rails > >> app is never launched. Is that more clear? > >> > >> Thanks, > >> Denise > >> > >> > >> On Mar 15, 2006, at 1:38 PM, Ben Reubenstein wrote: > >> > >>> http://localhost:3000/welcome.html/ points to a directory called > >>> welcome.html/ > >>> > >>> I guess I am unclear on what you mean by "Launch a rails application > >>> from a regular .html page" > >>> > >>> ~ Ben > >>> > >>> On 3/15/06, Denise Eatherly <denise@kurisudesign.com> wrote: > >>>> Hi, > >>>> > >>>> I want to launch a rails application from a regular .html page. It > >>>> works just fine with apache on my web host provider''s server but I > >>>> can''t seem to figure out how to get the index.html to show up while > >>>> I''m running lighttpd and using http://localhost:3000/welcome.html/ > >>>> > >>>> Seems like a dumb question, but any help would be appreciated. > >>>> > >>>> Denise > >>>> _______________________________________________ > >>>> Rails mailing list > >>>> Rails@lists.rubyonrails.org > >>>> http://lists.rubyonrails.org/mailman/listinfo/rails > >>>> > >>> > >>> > >>> -- > >>> Ben Reubenstein > >>> http://www.benr75.com > >>> _______________________________________________ > >>> Rails mailing list > >>> Rails@lists.rubyonrails.org > >>> http://lists.rubyonrails.org/mailman/listinfo/rails > >> > >> > > > > > > -- > > Ben Reubenstein > > http://www.benr75.com > >-- Ben Reubenstein http://www.benr75.com