0

I want to read variables from yaml file. I tried this Railscast but it is not working because I use Rails 3.2. Also I tried this topic again I saw that it is not working.

How can I read some variables from custom yaml file?

Community
  • 1
  • 1
eayurt
  • 1,169
  • 1
  • 19
  • 42

2 Answers2

0

you can use the rails config gem as pointed out in this answer.

edit: fot rails 3 you better use this approach: https://stackoverflow.com/a/5053882/532102

Community
  • 1
  • 1
tmaximini
  • 8,403
  • 6
  • 47
  • 69
0

I solved the problem with starting server again. However, there was an error again. The path of config file was wrong. I fixed it and everything is working now. I used this post.

Community
  • 1
  • 1
eayurt
  • 1,169
  • 1
  • 19
  • 42