Re: [Rails] Script/Server options for other ports

2009-11-27 Thread Wang Pengcheng
e you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-t...@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com > . > For more options, visi

[Rails] Re: mongrel

2009-10-25 Thread Wang Pengcheng
t before, but now the > > server start webrick. How can I start the server by mongrel now? > > -- > > Posted viahttp://www.ruby-forum.com/. > > try to install mongrel again.. > have you updated rails properly? > > > --

[Rails] Re: SSL/HTTP with regards to Mongrel

2009-09-26 Thread Wang Pengcheng
find anything that works... so here I am. > > How can I go about setting up SSL/HTTP with regards to Mongrel? > > Thanks in advance! > > > -- Code our future Name : Wang Pengcheng Nick : QJGui Sent from Wuhan, 42, China --~--~-~--~~~---~--

[Rails] Re: Ensuring a password is Alpha-Numeric

2009-09-20 Thread Wang Pengcheng
I am sorry to misunderstanding the author's needing. Waiting for solving. :-) 2009/9/20 Colin Law > > 2009/9/20 Wang Pengcheng : > > Thanks for your words. > > I am sorry for my words. > > /\A[\d\w]+\Z/im > > I think the point of the OP's post was th

[Rails] Re: Ensuring a password is Alpha-Numeric

2009-09-20 Thread Wang Pengcheng
Thanks for your words. I am sorry for my words. /\A[\d\w]+\Z/im 2009/9/20 Felix Schäfer > > > Am 20.09.2009 um 05:46 schrieb Wang Pengcheng: > > > First , please use the white list not the black list in the regex. > > Second, please validate the length of the input da

[Rails] Re: render :partial => @object

2009-09-20 Thread Wang Pengcheng
<%=render :partial=>@styles %> the partial html is : _style.html.erb and the object can be used in the partial erb is style 2009/9/20 Me > > renders nothing. > > On Sep 20, 12:13 am, Wang Pengcheng wrote: > > Add a comma or not? > > <%=render :part

[Rails] Re: render :partial => @object

2009-09-19 Thread Wang Pengcheng
> <%= render :partial @styles %> > > I get this error: > > Couldn't find template file for active_record/named_scope/scopes/ > _scope > > Any ideas?? > > > > -- Code our future Name : Wang Pengcheng Nick : QJGui --~--~-~--~~---

[Rails] Re: Ensuring a password is Alpha-Numeric

2009-09-19 Thread Wang Pengcheng
tml#good-passwords > > > > > if i leave the password blank, the message ''must contain alpha and > > > numeric characters!'' does get output on the site, but isn't working > > > as i want... > >

[Rails] Re: can't get a simple partial to work !...@#!$!!

2009-05-09 Thread Wang Pengcheng
Maybe you should send the var through each page, you need to store it and get it by method. store it: :locals => {:var = @a} get it: var = local_assigns[:var] On May 10, 2:21 am, 7stud -- wrote: > 7stud -- wrote: > > Frederick Cheung wrote: > >> On May 9, 6:47 am, 7stud -- wrote: > > >>> @cart

[Rails] Re: MacVim and rails.vim not working

2009-05-01 Thread Wang Pengcheng
cd ~ ls -R .vim/ -- .vim/: autoload doc history plugin .vim/autoload: dbext_dbi.vim dbext.vim rails.vim .vim/doc: dbext_gpl.dat project.txt surround.txt tags dbext.txt rails.t

[Rails] Re: How to have a duplicate copy of params?

2009-04-22 Thread Wang Pengcheng
Yes, please use the dup method for copy values. Sometimes ,most programmers change to use the ROR because of the Rails. So many of them can't use the Ruby very well. So I suggest you can study the Ruby now. On Apr 22, 5:07 pm, Santosh Turamari wrote: > Dmitry Sokurenko wrote: > > Use: > > >  

[Rails] Re: baffled with form_for

2009-04-21 Thread Wang Pengcheng
Most time, you can put a reference manual in your desk. When you can't confirm the settings , you can find it very quickly. For example : Rails: Up and Running, Second Edition Appendix B http://cachefly.oreilly.com/oreilly/pdfs/9780596522001_appendixB.pdf On Apr 21, 10:55 pm, Harm wrote: > Tha

[Rails] Re: Problem with crontab and script/runner

2009-04-21 Thread Wang Pengcheng
Sometimes you should test the file which is executed or not. So I suggest you can write some code in the script to show whether it work or not, such as `date >> ~/test.txt` After testing it ,you can permit the situation. On Apr 21, 5:12 pm, Jose vicente Ribera pellicer wrote: > Brandon Olivares