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

2012-12-19 Thread Dennis Krupenik
check newrelic_rpm -- 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 group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. To

[Rails] php in ruby on rails project

2012-12-19 Thread Tdiddy
I have a problem that I have not been able to find the answer and I have been looking for days. I have a new Ruby on Rails site. Everything is perfect with the site. There is an area on the site where people may submit their email address to obtain more information. The submit button is a php

Re: [Rails] my PHP buddy...

2012-12-19 Thread Peter Hickman
Let me get this straight. You are developing a site in Rails and then giving the code to a PHP developer who will rewrite it in PHP? Why doesn't the PHP guy develop the site? Why don't you just use the Rails site? Why don't you learn PHP and develop the site? Translating from Rails to PHP is

[Rails] number of video views

2012-12-19 Thread Rasch Maslasky
Hi! How can I count the number of video views? 1. player is used SmoothStreamingSamplePlayer.xap 2. counter is incremented when the play button is pressed -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email

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

2012-12-19 Thread Crispin Schäffler
hey, it actually is possible to do that... however, it will get very complex when you want to have statistics and i would recommend something like new relic or google analytics to use then... but thats not what you asked for... so her i give you a quick and dirty example how you could do that:

[Rails] Re: IDE

2012-12-19 Thread skintor
Check out this list of Ruby on Rails IDEs over at unlike kinds: http://unlikekinds.com/t/ruby-on-rails-ide You can compare features and filter by OS and so on On Thursday, October 4, 2012 3:33:30 AM UTC+10, Avi wrote: Hello, What is the best IDE for ROR with JRuby, Currently I am using

[Rails] List of Rails IDEs

2012-12-19 Thread skintor
Check it out, there's a list of Ruby on Rails IDEs over at unlike kindshttp://unlikekinds.com/t/ruby-on-rails-ide You can filter by feature and OS and so on Hope this helps some peeps! -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To

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

2012-12-19 Thread snappa
$.colorbox({html:%= @x %, width:35%,height:400px}); Assuming that the line of jquery code is executed client side and operates on the HTML returned from the Ajax request you will not have access to the instance variable. It will have been rendered in the returned HTML on the server. You

[Rails] MySQL `SHOW FULL FIELDS` statement using wrong database

2012-12-19 Thread jmgummes
Hi Everyone, I would like some help with a MySQL runtime error in my application. The error is: Mysql::Error: Table 'urbmi5_drupal.country_stateprovince' doesn't exist: SHOW FULL FIELDS FROM `country_stateprovince` The problem with this query is that it is running on the wrong database.

[Rails] Praca Programista Ruby on Rails

2012-12-19 Thread Akra Polska
AKRA Polska poszukuje utalentowanych programistów Ruby on Rails do pracy w biurze w Krakowie. *Wymagania:* - 1 rok doświadczenia w Ruby on Rails potwierdzonego portfolio. - dostępność na cały etat, - chęć dalszego rozwoju, - j.angielski w stopniu komunikatywnym. *Mile widziane:* -

[Rails] ActiveResource::create with an existing id: Rails 3.0 vs Rails 3.1 and above

2012-12-19 Thread Chuck Han
I'm upgrading my application from Rails 3.0 to Rails 3.2 (yeah, I know, what happened to 3.1?), and I'm experiencing a difference in the REST call when calling ActiveResource::create where the id is already defined. In 3.0, the app is sending a PUT. In 3.1 and above, is sending a POST. The

Re: [Rails] php in ruby on rails project

2012-12-19 Thread Norbert Melzer
The button is not PHP, it is HTML, why not change the receiving action to be ruby? Storing an email address in DB and send an email is a trivial task... Am 19.12.2012 10:32 schrieb Tdiddy etdun...@gmail.com: I have a problem that I have not been able to find the answer and I have been looking

Re: [Rails] number of video views

2012-12-19 Thread Colin Law
On 18 December 2012 10:32, Rasch Maslasky rasch.masla...@gmail.com wrote: Hi! How can I count the number of video views? Add a counter to the database and increment each time the video is fetched. Colin 1. player is used SmoothStreamingSamplePlayer.xap 2. counter is incremented when the

Re: [Rails] ActiveRecord object from json

2012-12-19 Thread Nicolas Desprès
On Wed, Dec 19, 2012 at 5:30 AM, dekhaus dekh...@mac.com wrote: Hi All Hi, 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

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

2012-12-19 Thread Nicolas Desprès
On Wed, Dec 19, 2012 at 6:37 AM, nikhil rn li...@ruby-forum.com wrote: Hi, 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,

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

2012-12-19 Thread Crispin Schäffler
well... thats what happens if you write it quick and dirty. it was not meant to be copy and paste... sorry... but what exactly is line 7 of your applications controller? did you have sessioons enabled? Am Mittwoch, 19. Dezember 2012 07:54:20 UTC+1 schrieb Maddy: Hi Everyone, Good Day! I

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

2012-12-19 Thread Colin Law
On 19 December 2012 10:59, Crispin Schäffler crispinschaeff...@gmail.com wrote: well... thats what happens if you write it quick and dirty. it was not meant to be copy and paste... sorry... but what exactly is line 7 of your applications controller? did you have sessioons enabled? I think

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

2012-12-19 Thread Thota praneeth
I hope you don't have * Track Model with date and IP fields. * On Wed, Dec 19, 2012 at 4:44 PM, Colin Law clan...@googlemail.com wrote: On 19 December 2012 10:59, Crispin Schäffler crispinschaeff...@gmail.com wrote: well... thats what happens if you write it quick and dirty. it was not

[Rails] Session

2012-12-19 Thread Maddy
*Hi Folks,* * * *Good Day to all,* * * *I want to store the session id in my database, because once i opened my site i should saved the session id in my database.This id should not be incremented till my site close.* * * *Once i closed and reopened the site, the new id should be generate.* * *

Re: [Rails] Session

2012-12-19 Thread Colin Law
On 19 December 2012 13:02, Maddy ashokku...@shriramits.com wrote: Hi Folks, Good Day to all, I want to store the session id in my database, because once i opened my site i should saved the session id in my database.This id should not be incremented till my site close. Once i closed and

[Rails] Re: Graph API

2012-12-19 Thread Karthikeyan A.K
Well, what you ask is quiet big. I don't know how you will integrate graph with how many people liked your site or blah blah. One short thing you can do is to put a facebook like button on your website. If you are looking at graphs, you might check into this blog. On Wednesday, December 19,

[Rails] Re: Rails Framework on Heroku

2012-12-19 Thread Karthikeyan A.K
Good work! On Wednesday, December 19, 2012 9:04:07 AM UTC+5:30, zhangjingqiang wrote: 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

[Rails] initialization of new model objects in Rails

2012-12-19 Thread Dan Brooking
Hey guys... having an issue that hopefully someone can help with. I have a ActiveRecord model called WebPage, it has two fields - url and title. I want the title to be determined by parsing the html (I'm using Nokogiri) - and this is where I'm having issues. My code looks something like:

[Rails] Re: Arel limit Where if fields are present

2012-12-19 Thread Matt Jones
On Tuesday, 18 December 2012 11:43:22 UTC-5, Jean wrote: I would like to do something like this: def self.advsearch(summary_description, specialties, place) User.joins(:experience,:summary,:information) .where(Information.arel_table[:business].eq(false))

[Rails] Re: ActiveRecord object from json

2012-12-19 Thread Matt Jones
On Tuesday, 18 December 2012 23:30:57 UTC-5, dekhaus wrote: For reference = here is the ruby code for the Survey and Question classes ... class Survey ActiveRecord::Base has_many :questions, :dependent = :destroy accepts_nested_attributes_for :questions, :allow_destroy = true,

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

2012-12-19 Thread Matt Jones
On Wednesday, 19 December 2012 00:37:23 UTC-5, Ruby-Forum.com User wrote: 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.

[Rails] [JOB] App re-write

2012-12-19 Thread Bill Walton
I have an application that needs to be rewritten in Rails and am beginning the process of identifying potential vendors and obtaining bids. The app is currently written in Perl / Catalyst though I do not believe that a lack of experience in that language / framework will be an obstacle. The

Re: [Rails] initialization of new model objects in Rails

2012-12-19 Thread Walter Lee Davis
On Dec 19, 2012, at 4:46 PM, Dan Brooking wrote: Hey guys... having an issue that hopefully someone can help with. I have a ActiveRecord model called WebPage, it has two fields - url and title. I want the title to be determined by parsing the html (I'm using Nokogiri) - and this is

[Rails] Re: ActiveResource::create with an existing id: Rails 3.0 vs Rails 3.1 and above

2012-12-19 Thread Chuck Han
Well, when in doubt, check the source code. In 3.0, create checks new? which looks to see if id.nil? In 3.1 and above, it also checks new?, but now, new? checks to see if the object has been persisted (which is different from checking to see if id is defined). On Tuesday, December 18, 2012

Re: [Rails] initialization of new model objects in Rails

2012-12-19 Thread Dan Brooking
Wow... you have no idea how long I've been staring at this. That's exactly what it was.. changed @doc to doc and that did it. I do have some code for parsing out the NodeSet just removed it for simplicity in my code. However, my code isn't as clean as what you have so I'll play around with

Re: [Rails] How to get access to /admin panel without Devise?

2012-12-19 Thread tamouse mailing lists
On Sun, Dec 16, 2012 at 8:42 AM, Nikolay itsniko...@gmail.com wrote: I have question: How to get access to /admin panel without Devise? And how to create admin user? Are you using the Active Admin gem? Active Admin bundles in Devise for managing adminstrative users (which could be completely

[Rails] Passing parameter from a dropdown.

2012-12-19 Thread Avi
Hello, I have a dropdown in the UI. There are many oprions. How do I send the parameter from the dropdown - the selected value to the controller? I have tried :- 1. %= select_tag 'name', options_for_select(@list, :selected) % 2. %= select(audit, value,options_for_select([[User Registration,

Re: [Rails] Passing parameter from a dropdown.

2012-12-19 Thread Jim Ruther Nill
On Thu, Dec 20, 2012 at 12:53 PM, Avi aavinash.beh...@gmail.com wrote: Hello, I have a dropdown in the UI. There are many oprions. How do I send the parameter from the dropdown - the selected value to the controller? I have tried :- 1. %= select_tag 'name', options_for_select(@list,

Re: [Rails] Passing parameter from a dropdown.

2012-12-19 Thread Avi
I am not adding any form because there is no model for this page. Only there is controller and view. On Thursday, December 20, 2012 11:11:29 AM UTC+5:30, jim wrote: On Thu, Dec 20, 2012 at 12:53 PM, Avi aavinas...@gmail.com javascript:wrote: Hello, I have a dropdown in the UI. There

Re: [Rails] Passing parameter from a dropdown.

2012-12-19 Thread Jim Ruther Nill
On Thu, Dec 20, 2012 at 1:45 PM, Avi aavinash.beh...@gmail.com wrote: I am not adding any form because there is no model for this page. Only there is controller and view. you need to add a form to pass the selected values to the controller. It doesn't matter whether you're accessing a model