url_for

0 views
Skip to first unread message

Hasmukh Rathod

unread,
May 8, 2008, 4:21:07 AM5/8/08
to bangal...@googlegroups.com
Hello friends,


Hope you all doing well. Actually, i want to know about rails "url_for" plugings . I have find out svn repository link. but it gives me error like page not found or plugin doesn't exist. Can anyone have?

Thanks.

--
with regards,
Hasmukh Rathod.
Crazy coder,
Safew Technology Labs.
Hyderabad.

" Just go ahead.....! "

Pratik

unread,
May 8, 2008, 4:23:13 AM5/8/08
to bangal...@googlegroups.com
Because url_for is not a plugin. It's in rails itself.

--
Cheers!
- Pratik
http://m.onkey.org

C. K. Ponnappa

unread,
May 8, 2008, 9:46:11 AM5/8/08
to bangal...@googlegroups.com
Look up the section on Routes in Obie's book ('The Rails Way')

Abbas K. Sutarwala

unread,
May 12, 2008, 1:03:58 AM5/12/08
to bangal...@googlegroups.com

Problem faced in rjs

I cannot access a controller instance variable in my rjs file

Code

LearnController.rb
   1  def page_via_ajax
   2      # debugger 
   3      render :layout => false
   4      @my_page_id = "pg_7"
   5    end
page_via_ajax.rjs
   1  puts("in page_via_ajax.rjs")
   2  puts("@my_page_id:#{@my_page_id}:")

System output from page_via_ajax.rjs:

in page_via_ajax.rjs
@my_page_id::

What are the reasons and what is the solution?

 

        Home         Start         Previous         Next         ReGen         Regen All


 

©emast.in All rights reserved.

Satish Kota

unread,
May 13, 2008, 11:55:56 PM5/13/08
to bangal...@googlegroups.com
Hey Abbas,
 
This actually should work... Just check to puts as
 
puts("@my_page_id:+@my_page_id+:")
 
Regards
Satish N Kota
 
On 12/05/2008, Abbas K. Sutarwala <abb...@gmail.com> wrote:
Hello.

My rjs cannot obtain the instance variable set up in the associated
controller method.  I have described the code in the attached note.  Will
appreciate any thoughts on "why".  I am using InstantRails with the Rails
version of 2.0.2.


With thanks and regards,

Abbas
Web-site: www.emast.in

Subject: Tutorial on 'Ruby on Rails'
Reply all
Reply to author
Forward
0 new messages