[Rails] on Click actions with active admin module

2012-08-20 Thread phoe san
Dear All , How I do nested form action using active_admin Module. Two Tables , Products and Categories At Products form has One Drop Down List Box for category. When I click category drop down List Items , I wanna show category form in product pages. How I do that using with active admin_modu

[Rails] embedded font

2012-08-14 Thread phoe san
I want to add custom fonts in my rails project. fonts is in assets/stylesheets folder. In my Css . I declare font-face : @font-face { font-family: Zawgyi-One; src: url("/assets/stylesheets/Zawgyi-One.ttf"); }. ttf is not ok @ ruby on rails ? How I do ? Regards, Phoesan -- Posted via http:/

[Rails] Email Exception

2012-07-16 Thread phoe san
Dear All, I would like to know How to Mailer Exception Handling. In My Project, I send email to all contact and view messages. Whatever emails is wrong, not send email, I wanna keep on process. UserMailer.message_email(@to_user,subject,message).deliver player = Player.new() player

[Rails] Re: different between these two array method.

2012-07-02 Thread phoe san
Hi Sentil and Colin, á‚ŠThank for your reply message and solution! phoesan -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com.

[Rails] Re: different between these two array method.

2012-07-02 Thread phoe san
<%= collection_select(:sport_name,count,Sport.find( :all, :order => 'id' ), :id, :sport_name, {:selected =>@sport_id})%> Collection_select Value. We take data from collection_select by params[:sport_name] In Controller, we use this ps_array = params[:sport_name] we get the data Firs

[Rails] different between these two array method.

2012-07-02 Thread phoe san
Dear friends, What is different between these two array method. First Array Method arr = ps_array["1"] arr += ps_array["2"] arr += ps_array["3"] Second Array Method arr = [ps_array["1"],ps_array["2"],ps_array["3"]] yours, phoesan -- Posted via http://www.ruby-f

[Rails] no such file load errors - md5

2012-06-26 Thread phoe san
Dear All , I have a problem with : this error messasge " No Such File Load error - md5 " I can only use with development section.(rails s) I can't use with production . ( rails s -e production). I use this command, the error message is like this Exiting /opt/local/lib/ruby1.9/gems/1.9.1/gems/ac

[Rails] Re: Date Time Change in View Section

2012-04-25 Thread phoe san
I got it by http://stackoverflow.com/questions/1081926/how-do-i-format-a-date-in-ruby-to-include-rd-as-in-3rd Thank Colin, -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group

[Rails] Re: Date Time Change in View Section

2012-04-25 Thread phoe san
Thank Colin, with strftime , 7 Jan 2012 is ok . I get 7th Jan 2012. phoesan -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.c

[Rails] Date Time Change in View Section

2012-04-24 Thread phoe san
Friend , In my database : date time is 2012-01-07. In Html page I want for My Preferred Time is 7th Jan 2012. How I do that! phoesan -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to

[Rails] How I update Multi Tables In A Form

2012-04-08 Thread phoe san
Hello Friend!. I wanna update tables in a forms. I have two table 1. user table ( usertable has id , name, email, address) 2. game table (gametable has id, description, game_date, gametiming , user_id) for edit .. I can display all two table data... Wanna update data params by userID.

[Rails] Re: I can't update data in table

2012-04-06 Thread phoe san
Thank Fred! routes are considered in the order they are defined, so although you do have a put specific route, rails never even looks at it because it finds match '/ profile/:id' first.. This logic fix my error. phoesan -- Posted via http://www.ruby-forum.com/. -- You received this m

[Rails] I can't update data in table

2012-04-06 Thread phoe san
In my edit page: url = profile/:id/edit the content is ! <%= form_for(@user, :as => :user, :url => profile_path(current_user), :html=>{:method => :put}) do |form| %> <%= form.text_field :email, :class=>"input"%> <%= form.submit 'Update Profile'%> <% end %> In cont