hi :)

i'm not has error.

but click the button,
show white page.

i want action is easy,

first, submit button click!

and some action from post function in 'Newsctrl' controller.

some action is save(sqlite3) that 2 inputbox's input

i thing not connect that views and controller

thank you for reading my article...

2009년 4월 23일 (목) 오후 9:34, Eric Mill <[email protected]>님의 말:

> Yeah, what Jenna said.  Also, can you show us the error you're getting?
>
> -- Eric
>
> On Thu, Apr 23, 2009 at 7:16 AM, Jenna Fox <[email protected]>
> wrote:
> > Why are you using the 'p' function in your controller? this is strange.
> > You give it a string containing ruby code... maybe closer to what you
> want
> > is p { render :newctrl } but even then, you are wrapping your entire html
> > response inside a <p> and probably also yet another layout? recursive
> > craziness I say!
> >
> > On 23/04/2009, at 5:41 PM, in-seok hwang wrote:
> >
> > hi all!
> >
> > i has some question.
> >
> > first, my camping ver is 1.5.180
> > markaby is 0.5
> > mongrel is 1.1.5
> >
> > i want connect some controller by div
> > As a result,
> > i want transfer input text from "Newsctrl" class
> >
> > i will show my code.
> >
> > this is my controller
> >
> >> 212     class Newsctrl
> >> 213         def get
> >> 214             p 'render :newsctrl'
> >> 215         render :newsctrl
> >> 216         end
> >> 217         def post
> >> 218             p 'post neonsign'
> >> 219         end
> >> 220     end
> >
> >
> > this is my views
> >
> >>  module Conf::Views
> >> 309     def layout
> >> 310         html do
> >> 311             head do
> >> ....Omitted....
> >>  body do
> >> 321
> >> 322                 div :class => 'header' do
> >> 323                     #div :class =>
> >> 324                     " ";br
> >> 325                     h1{a 'INFO_AGENT', :href => '/'}
> >> 326                     code :class => 'header' do
> >> 327                         '$ 배재대학교 정보과학관 303호'
> >> 328                     end
> >> 329                 end
> >> 330                 div :id => 'news-blocker' do
> >> 331                     div :id => 'news-text' do
> >> 332                         self << news
> >> 333                     end
> >> 334                 end
> >> 335
> >> 336                     div :id => 'news-button' do
> >> 337
> >> 338                     a "add", :href => "#", :onclick =>
> >> "Effect.SlideDown('newsctrl');return false;"
> >> 339                     end
> >> 340                 div :id => 'newsctrl', :style => "display:none;
> >> width:99%; height:22px;" do
> >> 341                     div do
> >> 342                         self << newsctrl  # i want connect by my
> >> controller, but this code has error occurs
> >> 343                     end
> >> 344                 end
> >> ....Omitted....
> >
> >
> > this function is  in views
> >
> >> 443     def newsctrl
> >> 444         form :method => :post do
> >> 445             label "내용";input :name => :title;
> >> 446             label "이름";input :name => :name;
> >> 447             input :type => :submit
> >> 448         end
> >> 449         a "close", :href => "#", :onclick => "$('newsctrl').hide();
> >> return false;"
> >> 450     end
> >
> >
> > how can i solve my question?
> >
> > plz help me .
> >
> > thank you for reading my article.
> > _______________________________________________
> > Camping-list mailing list
> > [email protected]
> > http://rubyforge.org/mailman/listinfo/camping-list
> >
> > _______________________________________________
> > Camping-list mailing list
> > [email protected]
> > http://rubyforge.org/mailman/listinfo/camping-list
> >
> _______________________________________________
> Camping-list mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/camping-list
>
_______________________________________________
Camping-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/camping-list

Reply via email to