add no_login_required to your controller

Some details about it are here 
http://wiki.radiantcms.org/Creating_an_extension_VI
http://github.com/radiant/radiant/tree/master/lib/login_system.rb
http://github.com/radiant/radiant/tree/master/spec/lib/login_system_spec.rb#L17



On Aug 15, 2008, at 10:59 AM, mike wrote:

Hi there,

i'm using radiant with a custom extension. I added a controller to that
extension which should process only AJAX-POST-Requests

-------------
<%= observe_field(
   :seller_zahlungsmethode,
   :update => 'payment_details',
   :url => {
       :controller => :zahlungsmethode,
       :action => :index
   },
   :with => 'query'
) %>
-------------

But somehow all my requests are getting redirected to the radiant login
screen locatet at /admin/login

--------------
class ZahlungsmethodeController < ApplicationController


   def choose
       render :partial => 'placeholder'
   end
   def create
       render :partial => 'placeholder'
   end
   def index
       render :partial => 'placeholder'
   end
   def show_page
       render :partial => 'placeholder'
   end
end
-------------------
_placeholder.html.erb just contains a <h1> tag

Eventually i'm missing something obvious

Thanks in advance,
Mike
_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to