Re: [Rails] Finding the visitors details of my website

2012-12-18 Thread Ashokkumar Yuvarajan
Yes Thanks! But this works only when they sign_in. My requirement is, if anyone open my website like www.xxx.com, i should be notified. Please advice. On Wed, Dec 19, 2012 at 12:36 PM, Thota praneeth wrote: > devise gem is there > > https://github.com/plataformatec/devise > > > On Wed, Dec 19,

[Rails] Finding how many times was my website visited?

2012-12-18 Thread Maddy
Hi Everyone, Good Day! I wanna to add to my blog a counter for displaying, how many times was my website visited. I would like to solve it through ruby (not GA or something like that). Is available any gem that do this task (also with checking IP address,the time of latest visited and visited

[Rails] Graph API

2012-12-18 Thread Samir
Can any body help me how can get the number of peoples likes my post by using graph api along with the profile image of that person... -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@

[Rails] Finding the visitors details of my website

2012-12-18 Thread Maddy
Hi Folks, Good Day to all! I have one urgent task in my project. Have to displays the visitors count, who are all visiting my website. Eg: If anyone visited my site in Canada, in my admin panel i should displays the details which i mentioned below. It shoule be displayed like thi

[Rails] Re: Default action performed by jQuery on the partial data in ruby on rails

2012-12-18 Thread sharath chander punthambekar
sharath chander punthambekar wrote in post #1089481: > Colin Law wrote in post #1089479: >> On 18 December 2012 08:17, sharath chander punthambekar >> wrote: >>> here the customer bills, but i am not able to post the data in the >>> partial. the div id where i am supposed to post the data is not b

[Rails] Writing data into yml file in a particular format

2012-12-18 Thread nikhil rn
Hi, I have a hash in a controller file which I have to write into a YAML.yml file in a particular format. This is the code I am using in the controller to write to yml file. "File.open("config/locales/output.yml", "w") {|f| f.write(hash_data.to_yaml) }" output.yml is the yml file. hash_data is

[Rails] ActiveRecord object from json

2012-12-18 Thread dekhaus
Hi All I'm trying to create an ActiveRecord object 'directly' from some JSON data. By 'directly' - I mean without 'walking' the parsed JSON data, but rather just passing the parsed JSON data to a method that will process all the data. To keep the question simple - let's say I have two objects

[Rails] Rails Framework on Heroku

2012-12-18 Thread zhangjingqiang
http://railsframework.herokuapp.com/ Here you can read rails' official weblog with beautiful multi-random themes. Enjoy it:-) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegr

[Rails] Ruby Lang on Heroku

2012-12-18 Thread zhangjingqiang
http://ruby-lang.heroku.com/ Here you can read multi-language news about ruby. Enjoy it:-) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this

[Rails] Re: Default action performed by jQuery on the partial data in ruby on rails

2012-12-18 Thread sharath chander punthambekar
Colin Law wrote in post #1089479: > On 18 December 2012 08:17, sharath chander punthambekar > wrote: >> here the customer bills, but i am not able to post the data in the >> partial. the div id where i am supposed to post the data is not been >> detected. Bills concerning only the customer selecte

Re: [Rails] Default action performed by jQuery on the partial data in ruby on rails

2012-12-18 Thread Colin Law
On 18 December 2012 08:17, sharath chander punthambekar wrote: > Problem :- Default action performed by jQuery on the partial data in > ruby on rails > > > description :- I am attempting the following. A customer select option > in the main form. when a user selects a customer in the main form his

[Rails] Arel limit Where if fields are present

2012-12-18 Thread Jean
I trying to create a select using Arel but I'm passing three parameters, I want to include the parameters only if they are different to nil or blank. Here is my method: def self.advsearch(summary_description, specialties, place) User.joins(:experience,:summary,:information)

Re: [Rails] Track the number of users who are all visiting the web application

2012-12-18 Thread Hassan Schroeder
On Tue, Dec 18, 2012 at 12:59 AM, Maddy wrote: > In my application i want to track the number of users who are all visiting > the web application. What do you mean by "users"? Authenticated users with accounts? Anonymous users? Is it important to distinguish between humans and bots/spiders? And

Re: [Rails] Track the number of users who are all visiting the web application

2012-12-18 Thread Nicolas Desprès
Hi All, I guess if I had to do it with Devise ( https://github.com/plataformatec/devise) I would check the current_sign_in_at column of the users table. Cheers, Nico On Tue, Dec 18, 2012 at 9:59 AM, Maddy wrote: > Hi All, > In my application i want to track the number of users who are all visi

[Rails] Re: Accessing non-instance variables in view

2012-12-18 Thread Praveen BK
Ya, thank you,adding @ to variable made it available in the view. here, I m making HTTP request using ajax, which goes to my controller and executes a method, Now I m getting return value in view. But I have to display it in popup menu. the code for the pop up is $.colorbox({html:"<%= @x %>",

Re: [Rails] Re: Dislpaying validation errors from one one model to view of another.

2012-12-18 Thread sumit srivastava
On 18 December 2012 14:54, AdofEssex wrote: > It looks like you're not outputting your errors on your view. > > If you go to your terminal/command line and try the following: > > type 'rails c' to enter the rails console. Here we go do a quick bit of > testing to see if the errors are being captu

[Rails] Re: Dislpaying validation errors from one one model to view of another.

2012-12-18 Thread AdofEssex
It looks like you're not outputting your errors on your view. If you go to your terminal/command line and try the following: type 'rails c' to enter the rails console. Here we go do a quick bit of testing to see if the errors are being captured. type 'user = User.new', this'll output a new User

[Rails] Track the number of users who are all visiting the web application

2012-12-18 Thread Maddy
Hi All, In my application i want to track the number of users who are all visiting the web application. Is there any gem is available to track the number of users visiting the web application? Please let me know how can i implement this feature. Thanks Ashok -- You received this message bec

[Rails] Default action performed by jQuery on the partial data in ruby on rails

2012-12-18 Thread sharath chander punthambekar
Problem :- Default action performed by jQuery on the partial data in ruby on rails description :- I am attempting the following. A customer select option in the main form. when a user selects a customer in the main form his bills should appear in a select format in all the subsequent partials. Ne