[Rails] Re: attachment_fu thumbnails

2011-04-07 Thread Vineeth Pradhan
schaf88 wrote in post #236924: > howdy! > I had the problem that attachment_fu didn't make a thumbnail, but > everything else worked. I read this post > http://www.ruby-forum.com/topic/104213 and added a parent_id column. now > I get the following error when I trie to add a photo: > > undefined met

[Rails] Re: Re: render :partial with :collection

2010-12-07 Thread Vineeth Pradhan
Abhishek shukla wrote in post #964036: > hey Vineeth, > > As mentioned by others about understand the concept of partial first > thats > true. > > But the collection object can be accessable by the name of partial in > you > case you can access using "<%= form.attribute_name %>" > <%= "render :part

[Rails] Re: render :partial with :collection

2010-11-25 Thread Vineeth Pradhan
"Виталий Янчук" wrote in post #963883: > Yes, you would better read about that. > But I will answer, in partial you would be able to access to the item by > accessing variable named by the name of the partial, in your case "form" > > On Thu, Nov 25, 2010 at 2:03 PM, Colin Law > wrote: > >> Colin

[Rails] render :partial with :collection

2010-11-25 Thread Vineeth Pradhan
Hello, How does the "render :partial => '/comment/form', :collection=>@blog.comments" work? What object does this pass to the partial view? How do I access the comment object in partial view? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to t

[Rails] Where should the rjs file be inserted in case of updating a child object

2010-11-25 Thread Vineeth Pradhan
Hello, I have a BlogPost objects' 'show' page where I insert new comments. Both BlogPost and comment have two separate resources. This in my 'route.rb' file looks like this map.resources blog_posts, :has_many => :comments So, 'comments' is a child of 'blog_posts'. So, in BlogPost 'show' page

[Rails] Re: On click, open new text box in Ruby on Rails

2010-11-24 Thread Vineeth Pradhan
Srikanth Jeeva wrote in post #963500: > Hi, > > You can use JS for doing this easy instead of Ajax. > > > > > > new comment > > Regards, > Srikanth > http://srikanthjeeva.blogspot.com/ Thanks for the suggestion. But what's ''? did you mean to input ruby code to display a button there? Beside

[Rails] On click, open new text box in Ruby on Rails

2010-11-24 Thread Vineeth Pradhan
Hello, I have a BlogPost resources, where in BlogPost 'show' screen, I want a "new comment" button to be displayed and only on clicking that button I want the new Comment view to be rendered into the same page. I would like to use ajax concept to do this. How do I do this? NOTE: I have BlogPost a