[Rails] Collect users who posted items with ActsasTaggable on Tag in rails 3

2012-02-21 Thread Aruna Chinnamuthu
I am using Rails 3 and Acts as taggable on in my application. I am fetching the articles associated with the tag by Article.tagged_with("tagname") and Blog.tagged_with("tagname") Now i would like to collect all the users from the above i.e.., people who are all posted articles and blogs with t

[Rails] String concatenation in the helper text

2010-11-17 Thread Aruna Chinnamuthu
Hi , I am trying to append the string in the helper function . content_tag(:span, :class => "a") do user.designation end + content_tag(:span, :class => "b") do user.number end In the above, i am trying to append strings before the value user.designation and user.number. like do "Design

[Rails] calling an action on mouse over of the link_to in rails

2010-11-15 Thread Aruna Chinnamuthu
Hi , i am very new to rails. I am having a link like <%= hcard_link_to_user h(@blog.user.fullname), @blog.user, :class => "underline" %> I am trying to call an action on mouse over of this link how to do that .. Please give suggestions. Aruna. -- Posted via http://www.ruby-forum.com/. --

[Rails] How to get lightbox on mouse over of the link in rails

2010-11-15 Thread Aruna Chinnamuthu
Hi , i am very new to ROR How to a mouse over light box thing in this link_to . I tried by getting a lightbox on Click of a button by <%= pop_up @blog %> where i added a action in blogs controller def pop_up render :partial => 'shared/pop_up', :layout => false, :locals => {:node => @blog

[Rails] Post request by Java code for Rails application

2010-10-29 Thread Aruna Chinnamuthu
Hi, i am trying to call my Rails app using Java code using Jersey I m having 2 tables . Blogposts (id,name,slug,desc) Comments (id,data,node_id,node_type) I m trying to post a comment through my ruby code. The Url for me is like http://localhost:3000/api/blogs/comment.xml?slug=blogtitle-0&comme

[Rails] Re: Error messages in other languages?

2010-10-21 Thread Aruna Chinnamuthu
Roman Hausner wrote in post #160733: > How can one change the messages that are shown in the flash for > validates... to different languages? Hi , Me too come across a situation like getting validation messages in different languages .And done that successfully. Here is an example : /app/co

[Rails] How to install .gem files in Ubuntu 9.04

2010-10-12 Thread Aruna Chinnamuthu
Hi, I am new to rails . i am trying to install gems from the source . I AM HAVING ClothRed-0.4.1.gem file . How can i install this gem manually . This .gem file had data.tar.gz and metadata.gz file -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed

[Rails] Re: Update code Net::HTTP::Put.new(url.path)

2010-09-07 Thread Aruna Chinnamuthu
Aruna Chinnamuthu wrote: > HI , > > i am new to ROR > > i am writing Ruby code for calling API blogs > > i have written ruby code for > > Creating the blog by > > require 'net/http' > require 'uri' > > url = URI.parse('http:

[Rails] Update code Net::HTTP::Put.new(url.path)

2010-09-07 Thread Aruna Chinnamuthu
HI , i am new to ROR i am writing Ruby code for calling API blogs i have written ruby code for Creating the blog by require 'net/http' require 'uri' url = URI.parse('http://localhost:3000/api/blogs/create.xml') req = Net::HTTP::Post.new(url.path) req.basic_auth 'a', 'a' req.set_form_data({'bl

[Rails] Ruby api code for Create blogs

2010-09-06 Thread Aruna Chinnamuthu
Hi , I am new to ROR.. I am trying to write a ruby code for the already existing API for blogs . For the create action in my blogpost.rb model file validates_presence_of :title, :category_id, :user_id validates_length_of :title, :in => 8..140, :too_short => "is too short", :too_long => "is

[Rails] Suggestions on Ruby code for API

2010-09-06 Thread Aruna Chinnamuthu
hi , i am new to ROR i was acually trying to write Ruby code for the api blogs i have written the ruby code as Loading development environment (Rails 2.3.8) >> class Blogpost < ActiveRecord::Base >> has_many :taggings >> has_many :tags,:through => :taggings >> end