Ruby on Rails Tuesday, May 21, 2013



On Tuesday, May 21, 2013 1:35:37 AM UTC-4, tamouse wrote:

On Tue, May 21, 2013 at 12:01 AM, Rochit Sen <li...@ruby-forum.com> wrote:
> Rochit Sen wrote in post #1109638:
>> mike wrote in post #1109637:
>>> On Monday, May 20, 2013 1:26:20 PM UTC-4, Ruby-Forum.com User wrote:
>>>>   def load
>>>>
>>>>
>>> You need to configure the route in the config/routes.db file.  In this
>>> case,
>>>
>>>  get 'draw#load'
>>
>> Hi Mike. Thanks for response. So in this case i would need to do
>> addition in
>> Routes.rb for each controller/action.? Is there no rule that can be set
>> In routes.rb?
>
> Hi All,
>
> I looked at the guide and also entered:
> get 'draw#load'
> This is still not working. Can someone please send me a working example
> or try similar thing themselves. I am really stuck on this.

Maybe try:

    match 'draw/load' => 'draw#load'

instead?

sorry, I missed something.  no rhtml files.  View files end in html.erb (for embedded ruby/html) or haml.  the above match statement should work.

 

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f2a42a2f-9805-42e6-a9c5-9fd77ea856be%40googlegroups.com?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment