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 are

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 expensiv

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 unsub

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" g

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

2013-05-13 Thread Javier Quarite
On Mon, May 13, 2013 at 2:03 PM, Javier Quarite 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&q

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 rubyonrails-talk+unsubscr...@google

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 I

Re: [Rails] Migration from SQLite to PostgreSQL

2013-04-30 Thread Javier Quarite
Tue, Apr 30, 2013 at 3:21 AM, 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 which is the best w

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

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(:inclu

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. 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 undefined method `order'

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. 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 it and then do

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 analyz

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. 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 when I run bundle

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. 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 my other computer

Re: [Rails] Bootstrap issues with RoR

2013-01-22 Thread Javier Quarite
On Wed, Jan 23, 2013 at 12:18 AM, xscr...@gmail.com wrote: > 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 http://localhost:3000/assets/bootstrap was not lo

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 wrote: > 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 3.2.1 > > ruby1.9.

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. wrote: > 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 @my_time = Tim

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 wrote: > 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 > populated) the callba

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-03 Thread Javier Quarite
On Thu, Jan 3, 2013 at 8:52 AM, Dheeraj Kumar wrote: > 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 here https://github.com/ra

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 AM,

Re: [Rails] git push heroku master error

2012-12-28 Thread Javier Quarite
On Fri, Dec 28, 2012 at 1:39 PM, Eddy Maue 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 http://railsapps.

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 t

Re: [Rails] validation check

2012-10-24 Thread Javier Quarite
On Wed, Oct 24, 2012 at 3:01 PM, Werner wrote: > 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 => true%> > > so the nam

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 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 > /usr/share

Re: [Rails] Designating CSS class throwing error?

2012-10-08 Thread Javier Quarite
On Mon, Oct 8, 2012 at 9:05 PM, wragen22 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, unexpected

Re: [Rails] IDE

2012-10-03 Thread Javier Quarite
On Wed, Oct 3, 2012 at 12:33 PM, Avi 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 I've heard that Ruby

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 >

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 t

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 => # maybe there's a typo in the file you are using (something

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" g

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 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, > > # > > is what I get. > > Try @result.to_yaml to see its attri

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 do

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] 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 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 table we have a c

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] interest behavior of json in rails

2012-08-04 Thread Javier Quarite
On Sat, Aug 4, 2012 at 2:29 PM, aldm alert 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 refresh file in Chrom

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 receive

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: Ta

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

2012-07-10 Thread Javier Quarite
On Tue, Jul 10, 2012 at 4:42 PM, Scott Ribe wrote: > 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 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 > |format| > > format.htm

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. 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 substitute

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 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? >> Any malwa

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 th

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 rubyonrails-talk

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 us

Re: [Rails] Best gem for user authorization?

2012-06-08 Thread Javier Quarite
On Fri, Jun 8, 2012 at 4:06 PM, renu mehta 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 forgotten > password. In

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

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 wrote: > On Sat, May 12, 2012 at 8:08 PM, mike 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 nil:NilClass > > > > I got (s

Re: [Rails] issues with text_field in rails

2012-05-08 Thread Javier Quarite
On Tue, May 8, 2012 at 2:10 PM, amvis wrote: > *view* > <%= form_for(@mstype) do |f| %> > <%= 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] 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 wrote: > 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', options_from_collection_for_select(@

Re: [Rails] Create routes dynamically

2012-04-30 Thread Javier Quarite
On Mon, Apr 30, 2012 at 10:21 AM, Nike Mike 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. To post to this gr

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 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 images). > > Att

Re: [Rails] Is it possible?

2012-04-24 Thread Javier Quarite
On Tue, Apr 24, 2012 at 3:12 PM, Colin Law wrote: > On 24 April 2012 10:42, Emanresu 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 their inventory and pricing. In the

Re: [Rails] Contribute to open source

2012-04-24 Thread Javier Quarite
On Tue, Apr 24, 2012 at 3:17 PM, Javier Quarite 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

Re: [Rails] Contribute to open source

2012-04-24 Thread Javier Quarite
On Tue, Apr 24, 2012 at 10:58 AM, Nicholas Ng wrote: > 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. Can > anyone here give

Re: [Rails] using Ajax for link_to

2012-04-23 Thread Javier Quarite
On Mon, Apr 23, 2012 at 9:07 PM, Elena T. 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 without ajax but

Re: [Rails] how to use cronjob

2012-04-10 Thread Javier Quarite
On Tue, Apr 10, 2012 at 11:16 AM, honey ruby wrote: > 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 send mails to differen

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 rubyonr

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 wrote: > The question is how to create this: > > Launch Modal > > Using link_to method > > <%= link_to "Launch Modal","#myModal", :data => {:toggle=>"modal"}, :class=>"btn"%> -- You received this message because you are subscribed to the Google Gr

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 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 , rather somet

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 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] 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 received

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 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 stackoverflow is

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 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 # updated_at: nil> > > I'm not sure what are the fields of your Table ... table :D, but according with

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] @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] 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 r

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 ruby

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 emai

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 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 unsubscr

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 rubyonrails-talk+unsubscr...@goog

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 g

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 rubyonrails-talk+unsu

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 emai

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 rubyonrails-talk+unsubscr...@googlegroups.co

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] 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] [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.

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 rubyonrails-talk+unsubscr...@goo

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 Go

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" gro

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 also

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 wrote: > 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 which is my > ca

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 rubyo

Re: [Rails] Compare arrays

2012-02-27 Thread Javier Quarite
On Mon, Feb 27, 2012 at 5:04 PM, Rodrigo Ruiz wrote: > 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| [4,1,2].include?(a)

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 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. When I do alert($(

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 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 believe it makes > sense to

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 gr

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

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 wrote: > > > > 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 I'v

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: 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 /home/felipe/rails/Younner/app/assets/stylesheets/main.c

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: rendering partial problem.

2012-02-22 Thread Javier Quarite
On Wed, Feb 22, 2012 at 2:15 PM, Roger Patrick 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 created searc

Re: [Rails] rendering partial problem.

2012-02-22 Thread Javier Quarite
On Wed, Feb 22, 2012 at 2:02 PM, Roger Patrick 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 where line #3

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 wrote: > 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 wrote: > > I have limited screen space for a table that I'm displaying, so I'm > showing a truncated view of a description field: > > <%= simple_format car.description.truncate(200, :separator => ' ') > %> > > I need a mouse over or click event to generate a

  1   2   >