Loading Model in Yaml

0 views
Skip to first unread message

tispratik

unread,
Jan 19, 2010, 10:48:11 PM1/19/10
to Saint Louis Ruby Users Group
Am loading the model called "Decode" in my yaml file. When i run the
rake db:seed, it runs fine in windows. But dont know why it fails in
unix.

Any ideas?

params.yml

<%
require 'Decode'
%>

One:
id: 1
filter_param: chapter_status
disp_value: Active
internal_param: modul_status
internal_value: <%= Decode::CHAPTER_STATUS_ACTIVE %>
sort_order: 1

In Unix:
rake aborted!
no such file to load -- Decode

Mario Aquino

unread,
Jan 20, 2010, 6:06:50 AM1/20/10
to stl...@googlegroups.com
Is the file named 'Decode.rb' or 'decode.rb'?  The windows filesystem is not case specific but on Unix it is.

--
You received this message because you are subscribed to the Google Groups "Saint Louis Ruby Users Group" group.
To post to this group, send email to stl...@googlegroups.com.
To unsubscribe from this group, send email to stlruby+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/stlruby?hl=en.




pratik khadloya

unread,
Jan 20, 2010, 10:40:25 AM1/20/10
to stl...@googlegroups.com
Hey thanks! That was the problem :)

-Pratik
Reply all
Reply to author
Forward
0 new messages