Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Problems setting Content-Type'
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
erhan  
View profile  
 More options Jul 14 2006, 10:06 am
From: "erhan" <eeris...@spk.gov.tr>
Date: Fri, 14 Jul 2006 07:06:40 -0700
Local: Fri, Jul 14 2006 10:06 am
Subject: Problems setting Content-Type'
Hi,

I am using ajax_scaffold to generate against a model backed by atable
on SQLServer...
It creates all the stuff, and I can list the items in my table... But,
the "Edit" and "Create New" buttons dont work...

The strange thing is that the problem occurs when I edit the
ajax_scaffold generated controller with before_filter/set_charset...

I try to set the charset of pages to ISO-8859-9, then when I hit the
EDIT buton (or Create...), the loading indicator starts spinning
forever and nothing happens.

If I comment out the before_filter call in the controller, edit and
create buttons work... But, this time turkish characters on the page
does not appear...

Any idea?
Thanks in advance...
--------------------------------------------------------------------------- ----------------------------------

I sollved it, by using another post in this group...
It looks like below....
class ApplicationController < ActionController::Base
  before_filter :configure_charsets

  def configure_charsets
    if request.xhr?
      @response.headers["Content-Type"] ||= "text/javascript;
charset=iso-8859-9"
    else
      @response.headers["Content-Type"] ||= "text/html;
charset=iso-8859-9"
    end
  end

But, this time another problem occurs... It is again related with
charset...
Look at it at this link :
http://www.google.com/url?sa=D&q=http://groups.google.com.tr/group/aj...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google