Re: [Rails] Feature requests... WebSocket related - whom to talk to?

2014-12-04 Thread Javier Quarite
As Anuj mentioned theres a rails-core mailing list ( https://groups.google.com/forum/#!forum/rubyonrails-core) I just saw the repo briefly, and I want to suggest something. Everything I've seen rails-related had tests...maybe you should do that too :) -- You received this message because you

Re: [Rails] Re: OT: buying a Mac computer

2014-02-28 Thread Javier Quarite
The only thing I would use a mac is for iOS development, besides Rails development. In my opinion you shouldnt buy a macbook if you can get the same with any linux distro. I remember when I started in rails dev and everyone used macbook pro/airs, that made me want to get one but it was too

Re: [Rails] Hello from Pittsburgh

2013-08-05 Thread Javier Quarite
Hi, there may be other topics about it or some other useful links but I always see this as a good place to start http://ruby.railstutorial.org/ruby-on-rails-tutorial-book Javier -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To

Re: [Rails] Re: Need help on #grep

2013-05-13 Thread Javier Quarite
Try: ObjectSpace.each_object(Class).to_a.map(:to_s).grep(/(stri)/i) -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [Rails] Re: Need help on #grep

2013-05-13 Thread Javier Quarite
On Mon, May 13, 2013 at 2:03 PM, Javier Quarite jquari...@gmail.com wrote: Try: ObjectSpace.each_object(Class).to_a.map(:to_s).grep(/(stri)/i) Sorry, no need of to_a :) -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe

Re: [Rails] Re: Re: Need help on #grep

2013-05-13 Thread Javier Quarite
well, there's might be some differences in our setups (or something else) I got this : [RubyToken::TkDXSTRING, RubyToken::TkDSTRING, RubyToken::TkXSTRING, RubyToken::TkSTRING, String] -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To

Re: [Rails] Roll your own authentication?

2013-05-06 Thread Javier Quarite
As a practice I've done my own authentication methods following a railscast (http://railscasts.com/episodes/250-authentication-from-scratch), but I'm using devise in other apps. I've heard that warden (devise is based on that) should be enough for everyone who wants an authentication solution but

Re: [Rails] Migration from SQLite to PostgreSQL

2013-04-30 Thread Javier Quarite
Tue, Apr 30, 2013 at 3:21 AM, dil.tako...@gmail.com wrote: I saw some of the tutorials on how to migrate from sqlite to postgresql, but it is either for mac or it is for a new/fresh app. What if I already have an App with data sqlite in it. I am using rails 3.2.2 and windows 7. Anyone knows

Re: [Rails] Learning ROR testing

2013-04-22 Thread Javier Quarite
On Sun, Apr 21, 2013 at 11:49 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: The RSpec book from pragprog actually spends a bit of time discussing rails testing using both cucumber and rspec, but i would not call it definitive. Have you used mini test? Do you recommend rspec to

Re: [Rails] How call Render XML in command line?

2013-03-31 Thread Javier Quarite
On Sun, Mar 31, 2013 at 5:17 AM, Dmitrij B. li...@ruby-forum.com wrote: I want check, how work in xml format. How me call in command line my format xml? (format.xml { render :xml = @product.to_xml( :include = :order ) }) I guess you want to see what's the output in rails console Just open

Re: [Rails] Re: How call Render XML in command line?

2013-03-31 Thread Javier Quarite
On Sun, Mar 31, 2013 at 1:55 PM, Dmitrij B. li...@ruby-forum.com wrote: i add curl --silent http://localhost:3000/products/3/who_bought -H Accept: application/xml According to that url you're going to action who_bought on products_controller and the problem is inside that action preundefined

Re: [Rails] Re: How call Render XML in command line?

2013-03-31 Thread Javier Quarite
Sorry, I haven't seen the action that you post in the beginning def who_bought @product = Product.find(params[:id] ) respond_to do |format| format.html format.xml { render :xml = @product.to_xml( :include = :order ) } format.json {render :json = @product.to_json(:include

Re: [Rails] where condition with array

2013-02-24 Thread Javier Quarite
Have you considered doing a sql query? my approach would be this query_array = [] [3,4,7].each do |value| query_array user_id != #{value} end Plan.where(#{query_array}.join( and )) Also, the past week I found this gist from ryan https://gist.github.com/ryanb/4974414 I'm still analyzing it

Re: [Rails] Where do Gems Live (e.g. CKEditor)

2013-02-17 Thread Javier Quarite
On Sun, Feb 17, 2013 at 4:25 AM, Jonathon M. li...@ruby-forum.com wrote: I'm a Rails newbie and I have added the CKEditor Gem which is working okay. To configure the gem though, you have to edit the config file, which is also working when I do that. However, when I push to github and pull to

Re: [Rails] Re: Where do Gems Live (e.g. CKEditor)

2013-02-17 Thread Javier Quarite
On Sun, Feb 17, 2013 at 9:44 AM, Jonathon M. li...@ruby-forum.com wrote: Yes, I'm using rvm. So the CKeditor gem will be there. If I want to modify the gem and have that modification passed to my deployed site do I need to move it to within my assets (or whatever)? I ask because otherwise

Re: [Rails] hope RAILS COMMUNITY MEMBERS help me solve this SIMPLE PROBLEM

2013-01-22 Thread Javier Quarite
On Wed, Jan 23, 2013 at 12:20 AM, New_to_Rails railsrider...@gmail.comwrote: hi i am new to rails help me to solve this simple problem, i'm using default sqlite db in railsi want to work and use oracle database now for upcomming rails application here is my ruby and rails version rails

Re: [Rails] Bootstrap issues with RoR

2013-01-22 Thread Javier Quarite
On Wed, Jan 23, 2013 at 12:18 AM, xscr...@gmail.com xscr...@gmail.comwrote: I added bootstrap-sass to my Gemfile, did bundle install, added @import bootstrap to my css file. Yet, bootstrap does;t work. Safari fails silently, Mozila says: The stylesheet

Re: [Rails] Get vars out of Controller

2013-01-19 Thread Javier Quarite
On Sat, Jan 19, 2013 at 6:44 PM, Pierre-Andre M. li...@ruby-forum.comwrote: I have a trivial question: if i have defined something in my controller, like def calendar my_time = Time.now end That variable only works on that method, you need an instance variable def calendar

Re: [Rails] Re: Method not receiving object values

2013-01-04 Thread Javier Quarite
Well, I did a before_validation callback def bv_callback puts self.to_yaml end and I can see that the object has profesion_name (and every other) attribute setted but here def profesion_related=(id) puts self.to_yaml end there are only 3 attributes filled. I'm still not getting how does

Re: [Rails] Re: Method not receiving object values

2013-01-04 Thread Javier Quarite
On Fri, Jan 4, 2013 at 4:19 PM, Dheeraj Kumar a.dheeraj.ku...@gmail.comwrote: Simple. First, all setter methods are called on AR, and I'm guessing profesion_related= was called the fourth, so only three attributes are filled. After all setter methods are called (which means all attributes are

Re: [Rails] Re: Method not receiving object values

2013-01-03 Thread Javier Quarite
Hi guys, Thanks both for the reply, I know it could be done by using a callback but there are more code inside that method. I'm using profesion_related as mentioned here http://railscasts.com/episodes/16-virtual-attributes (as well as other code inside that method) On Thu, Jan 3, 2013 at 3:22

Re: [Rails] Re: Method not receiving object values

2013-01-03 Thread Javier Quarite
On Thu, Jan 3, 2013 at 8:52 AM, Dheeraj Kumar a.dheeraj.ku...@gmail.comwrote: No, there isn't. Callbacks are your best bet. In the end I made a before_validation callback and inside that I'm using the virtual attribute, but I'm still wondering how AR order the list of attributes I started

Re: [Rails] git push heroku master error

2012-12-28 Thread Javier Quarite
On Fri, Dec 28, 2012 at 1:39 PM, Eddy Maue li...@ruby-forum.com wrote: An error occurred while installing sqlite3 (1.3.6), and Bundler cannot co ntinue. Make sure that `gem install sqlite3 -v '1.3.6'` succeeds before bundling. Heroku doesn't support sqlite Try this guide

Re: [Rails] Hosting costs for a small up!

2012-11-09 Thread Javier Quarite
Hi, I was going to suggest heroku (the free service) so you can test how it handles all the students, but seems you want more than that. Maybe linode? Where I work, we been using it for almost a year. We've started with linode 512 and now we are using 1024. Despite 2 interrumptions we had during

Re: [Rails] validation check

2012-10-24 Thread Javier Quarite
On Wed, Oct 24, 2012 at 3:01 PM, Werner webagentur.la...@googlemail.comwrote: Hi.. I have a select which I want to validate if a value is selected, otherwise not. %= f.collection_select :parent_id, Project.mainprojects.active, :id, :project_name, :include_blank = 'Partproject?', :allow_nil

Re: [Rails] start project again with a empty database

2012-10-10 Thread Javier Quarite
On Wed, Oct 10, 2012 at 11:05 AM, roelof rwob...@hotmail.com wrote: Hello, I want to start all over again with my project. So I deleted the directory and make the new project. But when I do rails s I see this error message : WARN TCPServer Error: Address already in use - bind(2) Exiting

Re: [Rails] Designating CSS class throwing error?

2012-10-08 Thread Javier Quarite
On Mon, Oct 8, 2012 at 9:05 PM, wragen22 bradwr...@gmail.com wrote: For some reason getting this error. Following a tutorial step by step. Why would the added class: btn ect be the problem? compile error /Users/bradwrage/webapps/treebook/app/views/statuses/index.html.erb:5: syntax error,

Re: [Rails] IDE

2012-10-03 Thread Javier Quarite
On Wed, Oct 3, 2012 at 12:33 PM, Avi aavinash.beh...@gmail.com wrote: Hello, What is the best IDE for ROR with JRuby, Currently I am using Aptana Studio. I am trying to use Rubymine. Which IDE would give better support to debugging ? Any Suggestions? I'm not using an IDE right now, but

Re: [Rails] Relogin.

2012-09-26 Thread Javier Quarite
On Sep 26, 2012, at 4:58 AM, Avi wrote: Hello, I have an interesting requirement. Don't know how to do it. I have an Admin, which can see a list of users. All the users will have a button (Login). The Admin can click on the Login button to to access the user's account. If Admin

Re: [Rails] Re: mark multiple results

2012-09-19 Thread Javier Quarite
Maybe this helps: http://api.rubyonrails.org/classes/Enumerable.html#method-i-group_by http://railscasts.com/episodes/29-group-by-month You may do @users.group_by(:id) ... but I'm not sure what you have in your search methods Javier -- You received this message because you are subscribed to

Re: [Rails] Re: get property of a model data

2012-09-09 Thread Javier Quarite
On Sun, Sep 9, 2012 at 9:45 PM, Soichi Ishida li...@ruby-forum.com wrote: Pradeep Singh wrote in post #1075257: Item has a belongs_to :user, right? yes In any case, what do you get when you print or inspect @result? if I print it, #ActiveRecord::Relation:0x0100f24800 is what I

Re: [Rails] Rails error: invalid byte sequence in UTF-8

2012-09-09 Thread Javier Quarite
Maybe this help http://stackoverflow.com/questions/7837350/sprockets-encoding-error-on-js-file-invalid-utf-8-byte-sequence https://github.com/sstephenson/sprockets/issues/87#issuecomment-1344825 -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

Re: [Rails] Rails error: invalid byte sequence in UTF-8

2012-09-09 Thread Javier Quarite
I've used this file https://github.com/juanbrujo/jQuery-Timelinr/blob/master/js/jquery.timelinr-0.9.5.js I've downloaded it and then in irb did f = File.read(/path/to/jquery.timelinr-0.9.5.js) f.valid_encoding? = true f.encoding = #Encoding:UTF-8 maybe there's a typo in the file you are using

Re: [Rails] Javascript error in Rails

2012-09-07 Thread Javier Quarite
Can you post the content of app/assets/javascripts/application.js:13 and also your Gemfile? JavierQ -- 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

Re: [Rails] A Question about Model and Database?

2012-09-07 Thread Javier Quarite
Rails is smart enough to determine if you want to create or drop a table if you have done the migration with change def change #code here end it only depends on how you write the commands if you do rake db:migrate then it will create the db (if the code inside change is about it) and if you

Re: [Rails] Re: rail s exiting

2012-08-28 Thread Javier Quarite
What I don't get is why the error is in config.ru:5, because it ends in line 4 with run StoryTime::Application maybe the name is Storytime but it depends on how you have done rails new APPNAME JavierQ -- You received this message because you are subscribed to the Google Groups Ruby on Rails:

Re: [Rails] How to open the pdf from the server via database?

2012-08-28 Thread Javier Quarite
On Tue, Aug 28, 2012 at 4:23 PM, Vinay Sri li...@ruby-forum.com wrote: Hello, I am very very new to Ruby on rails. Just joined as an Intern in a company. They gave me a task. I want to open the PDF in a new window based on the location id where we currently in. For example, In a database

Re: [Rails] interest behavior of json in rails

2012-08-04 Thread Javier Quarite
On Sat, Aug 4, 2012 at 2:29 PM, aldm alert li...@ruby-forum.com wrote: But there are some strange issues. For example, when I add data in json file using AJAX and then open file in Chrome: localhost:3000/example.json there are no data. I open the file in firefox and data exists. When i

Re: [Rails] local request

2012-07-24 Thread Javier Quarite
I've never done something like this before (routing to application controller), but weeks ago I saw this project in this mail list https://github.com/devton/whatismyvideoid and in its routes file he made something like you mentioned. Maybe you can use it as an example. Javier Q. -- You

Re: [Rails] how to display the terminal output to the page in real time.

2012-07-22 Thread Javier Quarite
Hi, you need something like pusher or maybe an ajax call that executes every 5 seconds (maybe more), depends on the amount of data you are going to retrieve (because it may crash your app) Javier Q. -- You received this message because you are subscribed to the Google Groups Ruby on Rails:

Re: [Rails] ajax, erb, uri, query string

2012-07-10 Thread Javier Quarite
On Tue, Jul 10, 2012 at 4:42 PM, Scott Ribe scott_r...@elevated-dev.comwrote: Is there a cleaner way to build the url in the following snippet? $(function() { $('#name').change(function() { $.ajax({ url: %= url_for({action: 'lookup'}) % + ?term= + this.value, ...

Re: [Rails] How to add a content to an email created with ActionMailer. mail(..,:body) and do |format| either

2012-07-08 Thread Javier Quarite
On Sun, Jul 8, 2012 at 12:43 PM, Tsvetelina Borisova ts.boriso...@gmail.com wrote: Hello, I am using ActionMailer and rails 3.0.9 and I want to add a content to an email that the user has entered but when I write: mail(...,:body=Something) I can't send the email. I tried mail() do

Re: [Rails] Re: a hands-on tutoring needed

2012-07-06 Thread Javier Quarite
On Fri, Jul 6, 2012 at 1:52 PM, sehrguey o. li...@ruby-forum.com wrote: happy moments are too short... the search form worked and still works but it has a major flaw - when the text_field_tag is left blank then all the db raws pop up on hitting submit button. How to prevent it? I tried to

Re: [Rails] Re: Rails 3 | Ruby 193 | taking 10-15 mins

2012-06-16 Thread Javier Quarite
On 16 June 2012 16:32, Karthikeyan A.K mindas...@gmail.com wrote: OK, if you have a slow internet connection, rails s will take a long time (as bundler will run and check the internet for nay dependencies). Since you say almost everything is slow, have you checked if your system is fast?

Re: [Rails] Need to Create Soap Web Service in Rails 3.2

2012-06-13 Thread Javier Quarite
On Wed, Jun 13, 2012 at 12:36 PM, Loganathan Sellapa loganathan...@gmail.com wrote: Hi All, I want to create an application which needs to provide SOAP services to multiple applications, I have googled and found that no plugins/gem were available to create soap web services except the

Re: [Rails] installing ruby on rails 1.9.3 on windows 7

2012-06-11 Thread Javier Quarite
You should take a look at this C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ execjs-1.4.0/lib/execjs/run times.rb:51:in `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable) Its always

Re: [Rails] installing ruby on rails 1.9.3 on windows 7

2012-06-11 Thread Javier Quarite
Correct link https://github.com/sstephenson/execjs -- 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

Re: [Rails] Best gem for user authorization?

2012-06-08 Thread Javier Quarite
On Fri, Jun 8, 2012 at 4:06 PM, renu mehta li...@ruby-forum.com wrote: Hello, Which is the best gem available for user sign-up and sign-in where user can have only one role at a time(i.e sign in as admin or as a data entry operator)? Also, email cannot be used as user name or to get

Re: [Rails] For counting average

2012-05-20 Thread Javier Quarite
On Sun, May 20, 2012 at 10:09 AM, Fernando Almeida ferna...@fernandoalmeida.net wrote: You should have a nil value to any @avg, try to use @avgN = @school.rate_schools.average(:X) || 0 I also suggest to pass all of that logic to the model so after finding the school: in controller @school

Re: [Rails] undefined method `key?' for nil:NilClass,bcrypt-ruby,has_secure_password

2012-05-12 Thread Javier Quarite
On Sat, May 12, 2012 at 7:43 PM, Greg Akins angryg...@gmail.com wrote: On Sat, May 12, 2012 at 8:08 PM, mike mikeg...@gmail.com wrote: now when I go to localhost:3000/users/new I first get some kind of bcrypt-ruby error and then when I reload the page I get a undefined method `key?' for

Re: [Rails] issues with text_field in rails

2012-05-08 Thread Javier Quarite
On Tue, May 8, 2012 at 2:10 PM, amvis vgrkrish...@gmail.com wrote: *view* %= form_for(@mstype) do |f| % p %= f.text_field(:Name,:class = span1,:placeholder = x) % %end% *Got the error like this* NoMethodError in Pgmdfntions#pgmdfntion Showing *pgm.html.erb* where line *#57* raised:

Re: [Rails] Create routes dynamically

2012-04-30 Thread Javier Quarite
On Mon, Apr 30, 2012 at 10:21 AM, Nike Mike li...@ruby-forum.com wrote: How to create routes dynamically on rails 3. Could you give an example of what you're trying to achieve? Javier Q -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group.

Re: [Rails] How to pass the selected value to controller through 'link_to'?

2012-04-30 Thread Javier Quarite
On Mon, Apr 30, 2012 at 10:52 AM, Marcos Serpa marcosse...@gmail.comwrote: Hello, guys. I'm searching for days, but I'm not finding a way to do this. How can I pass like an argument by 'link_to' the selected value of a selected_tag? Like this: %= select_tag 'cities',

Re: [Rails] Not able to run Setup.rb and install Rails.

2012-04-28 Thread Javier Quarite
On Sat, Apr 28, 2012 at 4:46 AM, Rubyist Rohit li...@ruby-forum.com wrote: Please see the attached images. I installed Ruby on a PC running Windows Server 2008 R2. I also installed Rails and it worked. Now I am doing the same on another PC with same OS, but it giving error (see attached

Re: [Rails] Contribute to open source

2012-04-24 Thread Javier Quarite
On Tue, Apr 24, 2012 at 10:58 AM, Nicholas Ng nichthinko...@gmail.comwrote: Hi,I learned ROR about 3 months period, i get to know some of the features on rails. I'm interested on this web programming technology, and i would like to spent some of my time to contribute a little to open source.

Re: [Rails] Contribute to open source

2012-04-24 Thread Javier Quarite
On Tue, Apr 24, 2012 at 3:17 PM, Javier Quarite jquari...@gmail.com wrote: If you want, you could send pull request to those gems on their github repository (or just upload your gists/pieces of code that you consider useful). If you want to start a project you should consider learning how

Re: [Rails] Is it possible?

2012-04-24 Thread Javier Quarite
On Tue, Apr 24, 2012 at 3:12 PM, Colin Law clan...@googlemail.com wrote: On 24 April 2012 10:42, Emanresu craiglba...@gmail.com wrote: Hi! I have hired a developer who has recommended Ruby on Rails to use for the administration part of our website where vendors can login and manage

Re: [Rails] using Ajax for link_to

2012-04-23 Thread Javier Quarite
On Mon, Apr 23, 2012 at 9:07 PM, Elena T. li...@ruby-forum.com wrote: Hello, it is my first question I have some problem with implementation java script in my project I have a lot of carts and a have a link add_quantity and I need to increase the quantity on 25 each time I made it

Re: [Rails] how to use cronjob

2012-04-10 Thread Javier Quarite
On Tue, Apr 10, 2012 at 11:16 AM, honey ruby emailtohoneyr...@gmail.comwrote: hey everyone i want to send mails by scheduling the time dynamically.lets say in a single table i have all the employee logs who came at different timings.they are from different locations and departments. i want to

Re: [Rails] installing ruby and rails framework

2012-03-29 Thread Javier Quarite
Take a look at this http://ruby.railstutorial.org/ but, I recommend you to use ubuntu. Sometimes you may find some troubles in windows JavierQ -- 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

Re: [Rails] How to add data-some thing with link_to method

2012-03-27 Thread Javier Quarite
On Tue, Mar 27, 2012 at 9:16 PM, Karthikeyan A k li...@ruby-forum.comwrote: The question is how to create this: a class=btn data-toggle=modal href=#myModal Launch Modal/a Using link_to method %= link_to Launch Modal,#myModal, :data = {:toggle=modal}, :class=btn% -- You received this

Re: [Rails] render :json not sending any data back ...

2012-03-26 Thread Javier Quarite
On Mon, Mar 26, 2012 at 11:48 AM, Erwin yves_duf...@mac.com wrote: [rails 3.2.2] I perform an ajax call : ... $.ajax url: /backoffice/expenses/rate type: GET dataType: json data: project_id: $('#project_id').val() code: $(this).val()

Re: [Rails] Re: render :json not sending any data back ...

2012-03-26 Thread Javier Quarite
On Mon, Mar 26, 2012 at 3:48 PM, Erwin yves_duf...@mac.com wrote: thanks for your feedback .. maybe so mistake typing this post , however the url is fine , as the action is correctly reached .. if I use : render :text = @rate then the result is displayed .. so it's not an Ajax call issue ,

Re: [Rails] Fear of sharing

2012-03-25 Thread Javier Quarite
Have you read rails tutorial? http://ruby.railstutorial.org/ I'm not sure how it will take you to read this but I guess you'll have an idea. You first have to be sure how it will take you to learn it, after that you can share your idea with someone who can help you :) Javier Q -- You

Re: [Rails] Best place for RSpec/Rails questions?

2012-03-22 Thread Javier Quarite
On Thu, Mar 22, 2012 at 1:12 PM, Pito Salas li...@ruby-forum.com wrote: I've tried a question on StackOverflow and on http://www.ruby-forum.com/forum/rspec. Are those the best sources for rspec-in-rails questions, or should I post in the Rails forum itself? Anyone have an opinion? I guess

Re: [Rails] Re: @model OR :model in a form_for

2012-03-21 Thread Javier Quarite
If you are going to use @table in index.html.erb (that is handled by def index ) you have to add to the index method def index @table = Table.new end but I don't know why does it works with the symbol and not with the instance Javier Q. -- You received this message because you are

Re: [Rails] Re: Re: @model OR :model in a form_for

2012-03-21 Thread Javier Quarite
On Wed, Mar 21, 2012 at 2:47 PM, Cluter Vipic li...@ruby-forum.com wrote: Hi Javier, you are right I just added it anyway when I reloaded the page now I have another error undefined method `basket' for #Table id: nil, created_at: nil, updated_at: nil I'm not sure what are the fields of

Re: [Rails] Re: rails server error (rails 3) in windows

2012-03-20 Thread Javier Quarite
Yes, have you installed it using rails installer? or something else? -- 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

Re: [Rails] @model OR :model in a form_for

2012-03-20 Thread Javier Quarite
Is it all made with scaffolds? or what do you have in your controller? Javier Q. -- 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

Re: [Rails] Rails 3 generate pdf

2012-03-19 Thread Javier Quarite
Have you tried by searching at railscast.com? It have video tutorials, I've seen there prawn Javier Q. -- 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

Re: [Rails] Re: Rails 3 generate pdf

2012-03-19 Thread Javier Quarite
Well... in the Pro version it only uses prawn, Maybe its because of the date (the free cast is from 2009) Javier -- 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

Re: [Rails] rails server error (rails 3) in windows

2012-03-19 Thread Javier Quarite
Have you add mysql gem? (maybe you have added it but just in case ) Javier -- 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

Re: [Rails] rails server error (rails 3) in windows

2012-03-19 Thread Javier Quarite
sorry my bad, I've seen it :) It seems that its a windows problem -- 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

Re: [Rails] Error installing json.........

2012-03-17 Thread Javier Quarite
It happened only one time? -- 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

Re: [Rails] Error installing json.........

2012-03-17 Thread Javier Quarite
Yes you have to do bundle install have you try by doing gem install json? -- 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

Re: [Rails] Error installing json.........

2012-03-17 Thread Javier Quarite
maybe its a windows problem... or rails installer -- 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

Re: [Rails] Agile web development with rails 4th edition adding sizes to the product

2012-03-17 Thread Javier Quarite
size of what exactly? of a product? If so, I guess you only have to add a row to your table -- 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

Re: [Rails] Dynamically generating selector, hyphen problem

2012-03-17 Thread Javier Quarite
Have you tried data-dismiss.to_sym? -- 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

Re: [Rails] Re: YODA-LIKE RUBY ROCKSTAR NEEDED -- $75 bucks per session

2012-03-08 Thread Javier Quarite
I know you're searching for a teacher (and you'll pay for the classes), but have you seen this page? http://www.railsmentors.org Maybe it's an option for you :) Javier Q. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this

Re: [Rails] What do I need to write a small game in ruby?

2012-03-08 Thread Javier Quarite
As far as I know http://rubygame.org/ or this http://www.libgosu.org/ -- 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

Re: [Rails] Cannot migrate after destroy a table

2012-03-07 Thread Javier Quarite
you could run a migration rails g migration drop_users_table and inside drop_table :users But I'm not sure if that's the only problem (according to your log it seems to be that) Javier Q. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

Re: [Rails] Re: Cannot migrate after destroy a table

2012-03-07 Thread Javier Quarite
If I'm no wrong if you just run the command to generate it again, it will tell you that a user migration already exists. I'm not sure if that's going to happen (but I guess because you are trying to generate a devise install again) -- You received this message because you are subscribed to the

Re: [Rails] Re: Cannot migrate after destroy a table

2012-03-07 Thread Javier Quarite
I forgot, delete the user migration :D -- 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

Re: [Rails] [Rails Guides] Getting Started 7.4 - Array Output Problem

2012-03-07 Thread Javier Quarite
Could you post the code of the show.html.erb? (because you're saying that it happens in the show action) Javier Q. -- 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

Re: [Rails] Starting my first application with Rails

2012-03-02 Thread Javier Quarite
On Fri, Mar 2, 2012 at 10:33 AM, reynie...@gmail.com reynie...@gmail.comwrote: Hi: I'm starting a simple application to learn Rails and Ruby of course. I come from PHP and frameworks like Symfony, CakePHP and CodeIgniter and some of them have a task to create DB models from existent database

Re: [Rails] Starting my first application with Rails

2012-03-02 Thread Javier Quarite
When you generate for example rails generate model Projects name:string it will generate a table id name created_at updated_at and as you see I named it PROJECTS but rails is smart enough to change it into PROJECT =) You should give this tutorial a try http://ruby.railstutorial.org/ and

Re: [Rails] i wanna buy best rails tutorials

2012-02-28 Thread Javier Quarite
Codeschool.com? It also has a free basic rails course Javier Q. -- 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

Re: [Rails] selecting params value to use with $.ajax()

2012-02-27 Thread Javier Quarite
On Mon, Feb 27, 2012 at 3:43 PM, Vell lovell.mcilw...@gmail.com wrote: Hello all, I'm trying to write a jquery function where I am posting some data from a form. I am wondering is there a way to select the particular param that I want to use when I submit the data to $.ajax(). I don't

Re: [Rails] Re: selecting params value to use with $.ajax()

2012-02-27 Thread Javier Quarite
On Mon, Feb 27, 2012 at 4:52 PM, Vell lovell.mcilw...@gmail.com wrote: Thanks for the quick response. That does give me a little more clarity but I guess my question was how do I define my variable with a value that is in params? When I do alert($(#params)) I get a response of object Object.

Re: [Rails] Compare arrays

2012-02-27 Thread Javier Quarite
On Mon, Feb 27, 2012 at 5:04 PM, Rodrigo Ruiz rodrigo.ru...@gmail.comwrote: Hi, does anyone know how to compare to arrays not considering their order? For example: if I compare [1, 4, 2] with [4, 1, 2], this should return true. Thanks in advance. You can try this [1,4,2].map{ |a|

Re: [Rails] Re: Problems with background-* - css

2012-02-23 Thread Javier Quarite
On Thu, Feb 23, 2012 at 5:44 PM, Felipe Pieretti Umpierre li...@ruby-forum.com wrote: Hello Paul, I made what you say: main.css.erb body {background: url( %= asset_path images/bg.jpg % ) fixed no-repeat; width:100%; height:100%; -webkit-background-size: cover; -moz-background-size:

Re: [Rails] Issues with template encoding (invalid byte sequence in UTF-8):

2012-02-23 Thread Javier Quarite
Have you tried in the beginning of the file # encoding: UTF-8 It works for me Javier Q. -- 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

Re: [Rails] rendering partial problem.

2012-02-22 Thread Javier Quarite
On Wed, Feb 22, 2012 at 2:02 PM, Roger Patrick li...@ruby-forum.com wrote: Can anyone help me? I have a problem that when I click on the search button I get the following error message: ActionView::MissingTemplate in Searches#show Showing C:/finalproject/app/views/searches/show.html.erb

Re: [Rails] Re: rendering partial problem.

2012-02-22 Thread Javier Quarite
On Wed, Feb 22, 2012 at 2:15 PM, Roger Patrick li...@ruby-forum.com wrote: class SearchesController ApplicationController def new @search = Search.new end def create @search = Search.new(params[:search]) if @search.save redirect_to @search, :notice = Successfully

Re: [Rails] Re: Problems with background-* - css

2012-02-22 Thread Javier Quarite
On Wed, Feb 22, 2012 at 4:31 PM, Felipe Pieretti Umpierre li...@ruby-forum.com wrote: I put main.css.erb, but continuing the same problem. Thanks So none of the styles are working? (with the file.css) actually you don't have to put .css.erb, if you want you can put css.scss Javier Q. --

Re: [Rails] Re: Re: Problems with background-* - css

2012-02-22 Thread Javier Quarite
On Wed, Feb 22, 2012 at 4:42 PM, Felipe Pieretti Umpierre li...@ruby-forum.com wrote: I change now to main.css.scss, and I reload my page and this errors show: Alpha channel 70 must be between 0 and 1 inclusive for `rgba' (in

Re: [Rails] Confirmation mail doesn't arrive

2012-02-22 Thread Javier Quarite
Have you checked config/devise.rb? You have to write the email, or you should check this https://github.com/plataformatec/devise/wiki/How-To:-Mass-password-reset-and-email-notification Javier Q. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

Re: [Rails] Re: Confirmation mail doesn't arrive

2012-02-22 Thread Javier Quarite
On Thu, Feb 23, 2012 at 12:58 AM, Soichi Ishida li...@ruby-forum.comwrote: You have to write the email, or you should check this I have put config.mailer_sender = no-re...@empty-lightning-1693.herokuapp.com in config/initializers/devise.rb Is this enough? soichi To be honest

Re: [Rails] Re: Re: Re: Re: Display by alphabetical letter.

2012-02-20 Thread Javier Quarite
On Mon, Feb 20, 2012 at 2:09 PM, Christopher Jones li...@ruby-forum.comwrote: Ok so I have been playing around with this search for the past few hours and have done the following but still no result. I have the following in my index.html.erb: % for char in 'A'..'Z' % %= link_to( #{char},

Re: [Rails] Rails 3.1 - Need to show a JS pop-up with the contents of a field - can it be easily done?

2012-02-19 Thread Javier Quarite
On Sun, Feb 19, 2012 at 2:11 AM, Don don.leat...@gmail.com wrote: I have limited screen space for a table that I'm displaying, so I'm showing a truncated view of a description field: td%= simple_format car.description.truncate(200, :separator = ' ') %/td I need a mouse over or click

  1   2   >