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
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:/
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
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.
<%= 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
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
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
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
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
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
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.
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
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
13 matches
Mail list logo