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?

I missed something in your original post.  The above match statement should work with 3.2 for routing, but your view file needs to end in html.erb for embedded ruby, or haml.  rhtml isn't recognized.  I also echo Colin's post, there's a lot that has changed with Rails and spending some time with a decent tutorial and/or the edge guides would ease the transition considerably.

--
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/9a7fad8a-b4a2-42f0-b715-de6f96723068%40googlegroups.com?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment