Saturday, August 25, 2012

Re: [Rails] index.html in rails-app/public

On Sat, Aug 25, 2012 at 10:05 PM, Colin Law <clanlaw@googlemail.com> wrote:
<snip>
> Sorry I cannot understand what you are trying to do.
> What URL are you trying to use?
> Are you trying to run a controller action from that url? Is so what
> controller and action?

I have created a rails app on hostmonster and there to run any rails I
have to create symbolic link to rails app like
$ ln -s ~/APPNAME/public ~/public_html/APPNAME

I also created home controller using
$ rails generate controller home

Then I have removed index.html from rails-app/public (default page).
when I open that link then it gives folder files
check this http://simak.in/blog

I also set the routes.rb file for home controller but still not working.
How to set route to any controller through public folder of app.

Now are you getting or still have confusion. I am not able to explain
my problem properly. Please try to understand and help me.

Thanks in advance.


--
Mandeep Kaur
http://mandeepsimak.wordpress.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.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate