[Rails] Senior Backend Developer in Kiev - Lemonade

2018-08-08 Thread Max Koroteyev
Kyiv Senior Ruby Backend Developer Email me to: max.korote...@lemonade.com Required 5+ years of Ruby on Rails experience Understanding of Agile dev process Experience with AWS / GCP Experience with relational databases, MySQL, PostgreSQL Good English Good to have Experience with NoSQL databases

[Rails] POST payload to rails model t.json 'payload'

2018-04-05 Thread Loua Max Desire
So guys i'm working on a tournament bracket based on the GOjs library , The bracket has score input. Once my user is done editing the bracket i save the bracket into a json variable : function save() { var tojs = myDiagram.model.toJSON();

[Rails] Re: Rails installation Invalid gem : package is Corrupt-nokogiri

2016-04-04 Thread Sur Max
I ran into same issues and for me the resolution was very simple. Just remove the cached gem file for the gem and try reinstalling. Example in above case it should be "rm /home/usr/.rbenv/versions/2.2. 3/lib/ruby/gems/2.2.0/cache/nokogiri-1.6.7.1.gem" Thanks. regards, Sur -- You received t

[Rails] Ruby on GoDaddy

2015-12-03 Thread max axel
New to RoR. Thinking about getting a GoDaddy VPS to host my site. I've heard that GoDaddy has just not been RoR friendly in the past but may have gotten better. Does anyone have any current experience using RoR on GoDaddy? -- You received this message because you are subscribed to the G

[Rails] I am looking for an internship on Rails

2015-09-29 Thread Max Hammer
Hi. I want to get an intern on rails. Ready to perform your tasks for free. I want get more experience. Learn rails about 3 month, good skills OOP, sql, git. Basic skill html, css, javascript. Before 2 year developed on C#. Where can I get an intern? -- You received this message because

[Rails] RailsStuff gem

2015-09-28 Thread Max Melentiev
Hi! I've published RailsStuff gem: https://github.com/printercu/rails_stuff It contains collection of small useful modules for Rails apps. Hope it'll be helpful! Max -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Gr

[Rails] Re: Ruby on rails Hosting / VPS

2015-06-09 Thread Max
On Sunday, June 7, 2015 at 1:01:44 PM UTC+5:30, Dyo Medio wrote: > > Hi all please share your recommendation for me to get Hosting or VPS, > which are best Price and best Service, Wherever Server, will be good if in > Asia Region should fine, thanks a lot :) > You can check out Rshosting

[Rails] Getting doublets of records while using an offset

2014-10-28 Thread Max Grønlund
Consider this schenario where I'm having pagination on a page @recordings = Recording.order(:title).page(params[:page]).per(4) puts params[:page]@recordings.each do |recording| puts recording.id end page 3 Recording Load (4.0ms) SELECT "recor

[Rails] Re: How can I do disable email delivery in development mode?

2014-06-24 Thread Max
> I recommend using the letter opener gem. it's fantastic for development - > check it out: https://github.com/ryanb/letter_opener -- 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

[Rails] Re: What javascript framework would you use to build a multi-page Rails app?

2014-06-20 Thread Max
't compare personally but angular works great for us. HTH max -- 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...@goo

[Rails] Database arquitecture for Soccer World Cup Pool

2014-05-07 Thread Max Holzheu
Hi guys! I'm starting with Ruby on Rails and am trying to build a Pool for the WC. I'm a bit confused as to how my MVC should look like (specifically the database). What I've done so far is 1. created the users: controller, model and views 2. created fixtures: model, controller Is this the

[Rails] Re: Deploying an angular.js +rails app at Heroku

2014-04-25 Thread Max
take a look at the browser console (if you're using chrome, right click on the web page and select 'inspect element' - go to the console tab) there's probably an error there. resolve that and you're on your way.. On Thursday, April 24, 2014 12:55:37 PM UTC-6, Juan Andres Rodriguez wrote: > > A

[Rails] Re: each.with_index

2014-01-11 Thread Max
As Dave answered, modulus is your answer - a.each_with_index do |obj, idx| if (idx % 5 == 0) # this is your starting point for each group of 5 end # do other stuff here... end -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" g

[Rails] Re: Hartl rails tutorial need help - regd "Test-driven development" introduction

2014-01-11 Thread Max
here but i don't see a huge disconnect from what you've reported and what the tutorial is expressing. hth, Max -- 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

[Rails] Re: Can we keep validation in memcached ?

2013-11-04 Thread Sur Max
@Fahim In my opinion memcached is not a suitable tool for the purpose you've mentioned. In fact it'd be waste of resources in such a case. I would go for processing that thing in background using any of the available gem for processing the background job. Showing an interim screen to the user me

[Rails] Re: Rails 4 ujs button only works after second click

2013-10-05 Thread Sur Max
Your view that has the link link_to 'Pin' already binds the event and points to the new action so you won't need to bind the event again to this link in new.js.erb. Conclusion is your new.js.erb has problems. Replace your new.js.erb code with the following: $('a.pinbutton').parent().append('<

[Rails] Re: Delete duplicate records from a 2 dimensional array in rails

2013-09-09 Thread Max
if you really need to do some processing that gets you an array with duplicate entries and then clean the array at the end of it all. try doing something like @mem = @mem.uniq you can probably do @mem.uniq! but i've had some cases where that didn't get me the results i wanted. -- You recei

[Rails] Re: heroku with iconv error

2013-08-12 Thread Max Davila
Hi, anu. I am having the same exact problem. Just wondering if you found a solution. I am stumped. On Friday, July 26, 2013 4:56:09 AM UTC-4, anu wrote: > > heroku gives the error application error in the browser for import > functionality > in heroku logs > application.rb/ require:cannot lo

[Rails] Re: how to upload and download files (type of files pdfs,xls,word)

2013-07-09 Thread Max
ed, upload them to AWS or something like that and make those links point to the AWS instance of the file. I imagine that would work. good luck, Max -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this grou

[Rails] Re: How to build App with Roles Admin,User..

2013-03-17 Thread Max
authentication pieces you're looking at... good luck, Max > Posted viahttp://www.ruby-forum.com/. -- 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, s

[Rails] Re: Best IDEs for Ruby on Rails

2013-03-16 Thread Max
We are using RubyMine. if i need something lightweight I use Vim or TextMate. RM has the ability to run the server, to debug and step through code, git integration - lots of great features. It's a memory hog (I boosted my Mac up to 16G RAM) but the newer versions have been better than the older

[Rails] Re: Cocaine::CommandNotFoundError

2013-01-10 Thread Max McDonnell
I ran into the same issue. Looks like you're using paperclip-ffmpeg. Make sure you have ffmpeg installed locally. On Thursday, December 20, 2012 9:42:12 PM UTC-5, f46ha...@gmail.com wrote: > > i have error, like this > > Cocaine::CommandNotFoundError > > Rails.root: /home/fajar/workspace/company

[Rails] Re: Need Sujjestions On Opensource Reporting Tool To Use In A ROR Project

2012-11-27 Thread Max
FusionCharts makes a free version you can use. High Charts is another solution although it is not free. It is however pretty robust, not very expensive, and covers a lot of ground. The Google visualization api looks very promising too. There are some others. google away... On Tuesday, Nov

[Rails] Re: Struggling at Rails beginner help

2012-11-19 Thread Max
+1 on Colin's response On Monday, November 19, 2012 11:17:40 AM UTC-7, Ruby-Forum.com User wrote: > > So I've just dipped into Rails and I'm completely lost ... > I have a very simple website. There are 2 layouts, application and > welcome. > > The route begins at the welcome layout. > > The "

[Rails] Re: How to stop ruby escaping javascript?

2012-11-14 Thread Max Shytikov
Hi Only one solution you should use method 'tag' directly https://github.com/rails/rails/blob/39b9c943b7ec5181c19461d319d8c610ea1bf941/actionpack/lib/action_view/helpers/tag_helper.rb#L65 Because escape = true by default for 'text_field_tag' https://github.com/rails/rails/blob/c091fae21f32250

[Rails] Re: wrap_parameters and Single Table Inheritance

2012-11-14 Thread Max Shytikov
Hi Christopher, You can try this for example wrap_parameters Entity, :include =>(Person.attribute_names + Group. attribute_names), :format => :json On Thursday, November 8, 2012 2:07:33 AM UTC+2, Christopher Thielen wrote: > > I'm using wrap_parameters and ActiveRecord's single table inheritan

[Rails] Re: non ascii encoding

2012-11-14 Thread Max Shytikov
Hi Jim, Looks that you have encoding problems, check your current encoding puts Encoding.default_external To solve your problem it should be UTF-8. Because according to the docs http://www.ruby-doc.org/core-1.9.3/Encoding.html#method-c-default_external *"File

[Rails] Re: A Ruby Book (free to use)

2012-08-27 Thread Max
skimming through the book - your section at the end where you show a proof that 1 = 2... absurd from what I can see... on line 3 you say: 1 - 1 = (1 + 1)(1-1) and evalueat it to: 1-1/1-1 = 1 + 1... how can you come up with that? as far as I can tell it evaluates to: 1-1 = 2 * 0 0 = 0 ??? so

[Rails] Re: how to add onchange javascript event to select field

2012-07-20 Thread Max
this will give you the selected text if you want it. you can probably figure out what you need from this example. var grain = $('select#id_of_my_element option:selected').text(); -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post

[Rails] exporting to power point

2012-06-27 Thread Max
with much. thanks, Max -- 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...@google

[Rails] Re: return JSON in AJAX

2012-06-18 Thread Max Reznichenko
You can also use respond_with method and change your render :json => ActiveSupport::JSON.encode( @return ) to respond_with @return But for using this, you have to specify responds_to :json in controller воскресенье, 17 июня 2012 г., 21:17:32 UTC+3 пользователь Ruby-Forum.com User написал: > >

[Rails] Re: return JSON in AJAX

2012-06-15 Thread Max Reznichenko
Try using basic jquery ajax call i.e. $.ajax({ url : "your_url" // JSON data }).done(function(response) { // here response will have JSON returned by task#create }); пятница, 15 июня 2012 г., 1:45:07 UTC+3 пользователь Ruby-Forum.com User написал: > > hello guys, I'm trying to make a aj

[Rails] Re: How to detect integration tests running ?

2012-06-13 Thread Max Reznichenko
Tests are run as a separate process, not connected to other ones, by default So, using `ps aux | grep` i.e. for linux could help. Anyway, you need OS based solution here среда, 13 июня 2012 г., 14:57:08 UTC+3 пользователь sreid написал: > > How can I detect that test:unit integration tests are be

[Rails] Re: The rails 3 way

2012-06-12 Thread Max Reznichenko
s from asp.net mvc, > is the rails 3 way book still relevant for rails 3.2 > > Steven > Max -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonr

[Rails] Re: how to connect rails app using monodb

2012-06-12 Thread Max Reznichenko
Hi, Checkout Mongoid gem http://mongoid.org/en/mongoid/index.html https://github.com/mongoid/mongoid Max вторник, 12 июня 2012 г., 15:42:31 UTC+3 пользователь honey ruby написал: > > hi all > > i ve installed monodb this is the first time ive installed it and > don'

[Rails] Re: render => partial not recognizing method in call

2012-06-12 Thread Max Reznichenko
Hi, Andrew The error says the @composer variable is not set. By the code I see, that you are setting @composer*s* variable. Take a look at the starting guide on rendering in Ruby on Rails as an approach itself is wrong. Max вторник, 12 июня 2012 г., 15:09:30 UTC+3 пользователь akkdio написал

[Rails] Re: no such file to load -- rexml/encodings/UTF8.rb

2012-06-12 Thread Max Reznichenko
How do you run the parser? Is it in the Rails app or a single script? Try including rexml directly in (irb or rails)console and post the response четверг, 22 марта 2012 г., 11:04:56 UTC+2 пользователь Ruby-Forum.com User написал: > > I'm install ruby 1.8.7 from rvm on FreeBSD 9 RELEASE, and the

[Rails] Re: weird error in rails 2.3.5

2012-06-12 Thread Max Reznichenko
Try to be more specific with old versions of Rails and change <%= render(@locations) %> to <%= render :partial => "location/location", :collection => @locations %> In this case _location partial should have local variable "location" correctly set. Hope, this helps. MaxR > > Colin, I already trie

[Rails] Re: Rails 3 advanced queries

2012-06-12 Thread Max Reznichenko
Hi, Rashila It looks, that the only good solution here is .where("categories.item_category_id IS NOT NULL") MaxR On 12 июн, 06:44, Rashila Noushad wrote: > In one of my queries I used > .where (:categories => {item_categories {:item_category_id => nil}} for > 'item_category_id IS NULL'. > How t

[Rails] Re: Relations with find_each

2012-06-08 Thread Max Reznichenko
> order.line_items != LineItem.where(:order_id => order.id) Let me rephrase Robert's words. The key difference here is, that LineItem.where(:order_id => order.id) doesn't fire the sql and returns ActiveRecord::Relation object. While the order.line_items runs SQL and returns the Array of records. T

[Rails] Re: how to clean a string from non-html sequences ?

2012-06-08 Thread Max Reznichenko
Probably the best way is to use before_save block in model where u can add attribute_with_html.strip http://ruby-doc.org/core-1.9.3/String.html#method-i-strip On 7 июн, 13:28, Erwin wrote: > using the CKEditor  to enter post content, I get a string as output , > with some escape sequences \r\n\

[Rails] Re: agile roots group discount

2012-06-02 Thread Max
correction: the code is URUG12 -- 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...@googlegroup

[Rails] agile roots group discount

2012-06-02 Thread Max
Moore, Pat Maddox and Corey Haines will be speaking! Bring family, friends, co-workers etc... htttp://www.agileroots.com Max -- 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] Re: before_save messing up

2012-05-14 Thread Max
but wouldn't it have an affect on the ability to access the remember_token in the SessionHelper? in this code: module SessionsHelper def sign_in(user) cookies.permanent[:_pm] = user.remember_token current_user = user end end > Sort of. it means that the value can be set by update

[Rails] Re: before_save messing up

2012-05-12 Thread Max
I'm pretty new to ruby and rails BUT, I've had problems in the past like this when I didn't set the variable up with the attr_accessible in the model... when you try to access the remember_token in the SessionHelper, is it in scope without the attribute set up or is that why you're getting nil?

[Rails] Re: before_save messing up

2012-05-12 Thread Max
not sure if this is it or not but do you need to add the remember_token to the attr_accessible list? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrail

Re: [Rails] Bluehost - Rails 3

2012-04-27 Thread Max Schubert
Linode.com is a great VPS provider if you are looking for low cost, great avilability and lots of flexibility for your Rails apps. Max On 4/27/12, Dheeraj Kumar wrote: > Rails on a shared hosting? HA! > > Get a free Heroku account for development & testing, a cloud hosting, VPS or

[Rails] Re: Completely, absolutely and totally new...

2012-03-20 Thread Max
learning (more) html, javascript, MVC, etc etc etc... tons of fun! do the testing. :) Max -- 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

[Rails] London Developers

2012-03-09 Thread max Free
Looking for perm or contract developers 3 years experience minimum. -- Posted via http://www.ruby-forum.com/. -- 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 uns

[Rails] Re: Has Many Through Controller

2012-03-01 Thread Max
i'm very new to this too so this may be wrong (shameless disclaimer) but you mentioned quantity in your question but there's no reference to quantity in your description of the models. I would think that you'd also need a quantity field in the Orders_Products model/table to support that and

Re: [Rails] Ruby IDEs

2012-02-29 Thread Max Schubert
Tmux + tmuxinator + vim + Janus (bundle of really useful vim plugins for ruby developers) - just started using this combo and it is great - lets you easily build your own very powerful IDE. Max On 2/29/12, Paul wrote: > +1 for RubyMine. Everything is at your fingertips, and the debugging &

Re: [Rails] JIRA anyone?

2012-02-29 Thread Max Schubert
made - it is pretty tiny code-wise. Max On 2/29/12, Robert Walker wrote: > Tom Allison wrote in post #1049289: >> So my next question is -- does anyone use JIRA API with Ruby/Rails and >> if >> so -- how? > > I'm guessing, not very many. I attend the Ruby user&#x

Re: [Rails] i wanna buy best rails tutorials

2012-02-28 Thread Max Schubert
Check out railscasts.com as well. Max On 2/28/12, honey ruby wrote: > hey every one can any one suggest me which tutorial is best to learn > rails3.i wanna buy it to learn rails3. > > > > > Thanks in advance > > -- > You received this message because you are s

[Rails] Parse http login/password protected XML file ?

2012-02-20 Thread Max Audet
If you have any other suggestion, I'm open. My basic need is to read an XML file that is located on an HTTP link which is protected with IIS's login/password. I need to read some values from this XML file. -*-*-*-*-*-*-*-*-*- I have to read xml files that are accessibles through http with authen

Re: [Rails] Need to get the environment name

2012-02-13 Thread Max Schubert
oject that scripts can read without the overhead of spinning up the app to get that info, scraping logs, etc Max On 2/13/12, Rafi A wrote: > Hi All, > > I want to get the environment name in which the application is executing > whether in production or in development etc using the bas

[Rails] Re: Ruby on Rails Hosting.

2012-02-09 Thread Max
i definitely had issues with trying to develop with sqllite and deploy on heroku (cedar stack) to postgresql. It ended up being imperative to install postgresql locally for the dev environment. as a newbie it was a bit daunting at first but i got through it without too much bloodshed and haven't

[Rails] Re: Ruby on Rails Hosting.

2012-02-08 Thread Max
I'm very new to ruby and rails and followed Michael Hartl's tutorial for Rails... it's a great starting point and covers deploying to heroku. I'm using rails 3.1.0 and postgresql and didn't find it difficult at all to deploy on heroku. Max -- You received thi

Re: [Rails] Call method from view

2012-01-26 Thread Max Schubert
If you have utility methods you wish to call from views use the Rails helper convention and put them in modules under app/helpers - you can use the rails command line script to help you generate them if need be. Max On 1/25/12, ROR-new wrote: > I want to call a method that i have implemented

Re: [Rails] Action Mailer with Rails

2012-01-20 Thread Max Schubert
delayed_job is a popular gem for this (there are many others that are worthwhile as well) and if you go the cron route I highly recommend whenever, a ruby gem that lets you manage cron jobs from within your Rails project - really nicely done gem. Max On 1/20/12, Walter Lee Davis wrote: > &

[Rails] any help with installing gitorious?

2012-01-18 Thread Max
'm working on (unrelated and unfortunately in C#)... thanks in advance for the help. Max -- 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

Re: [Rails] Complex query with multiple joins

2012-01-06 Thread Max Schubert
d performs well. Max On 1/6/12, Peter Vandenabeele wrote: > On Fri, Jan 6, 2012 at 2:13 AM, Linus Pettersson > wrote: > >> Hi! >> >> I have an app that manages products. I import the products from several >> resellers and they all name their categories different. B

[Rails] Re: help with some ugly code: refactoring

2012-01-05 Thread Max
thanks guys, between the two of you I got it nailed! Max On Jan 5, 11:19 am, M Daubs wrote: > Here is my suggestion. > > Have your User model ignore attempts to set a blank password: > > def password=(value) >   super(value) unless value.empty? > end > > And the

[Rails] Re: Scrapping Content from a website

2011-12-15 Thread Max
I don't have a lot of experience but did some scraping recently. I used the nokogiri gem. found it to be pretty self explanatory and much easier to implement than i had anticipated. google it and i'm sure you can figure it out... Max On Dec 14, 10:07 pm, MUMU wrote: > Hey all,

[Rails] Re: problem scraping using nokogiri - getting wrong characters

2011-11-27 Thread Max
i tried that but it didn't work for me. what did was to explicitly set the encoding property in nokogiri url = 'http://www.snowbird.com/ski_board/snowreport.php' page = Nokogiri::HTML(open(url)) page.encoding = 'utf-8' worked great after that! thx,

[Rails] Re: Anybody willing?

2011-11-26 Thread Max
I recommend the rails tutorial at: http://ruby.railstutorial.org/ the tutorial is great and helped me a lot. On Nov 26, 9:51 pm, "Mathew S." wrote: > Hey, I was wondering if someone would help me out through Skype a little > teaching thing. I just need a little push in the right direction so i

[Rails] sending emails from within my site...

2011-11-26 Thread Max
I'm trying to use Action Mailer and it's close but the emails aren't being sent. they show up in the webrat log and everything else looks ok but nothing arrives when i test it. I created a gist at: https://gist.github.com/1397037 any ideas? thanks, Max -- You received this

[Rails] problem scraping using nokogiri - getting wrong characters

2011-11-26 Thread Max
I've tried substituting the characters and some other things but haven't had any success yet. any ideas? thanks, max -- 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@googleg

[Rails] Re: Zlib problem

2011-11-23 Thread Max Williams
Hi Zoli - did you ever solve this? got the exact same problem and have followed the exacts same path as you so far. max -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to

[Rails] Re: error when using generator

2011-11-21 Thread Max
epo of course - I > love git) > > If you have any advice on this I'm all "ears". > > Thanks. > > Max > > -- start of error paste > > Allens-MacBook-Pro:test allenmaxwell$ rails g controller testcontroller > /Users/allenmaxwell/.rvm/gems/

[Rails] Re: Ubuntu: Best IDE

2011-11-18 Thread Max
I"ve been using geany lately. heard redcar was good and tried to install but ran into some problems with that. haven't had a chance to really debug them yet. On Nov 17, 7:17 pm, "Mathew S." wrote: > Anything but Aptana Studio > > I have not had good luck with Aptana... So Please give me a lis

[Rails] best way: restore a db on a site using an client CSV file

2011-11-14 Thread Max
;t try paperclip, just read up on it).. some problems were due to the articles i was reading were written before the CSV library changed etc... some just due to lack of experience. any ideas or help would be appreciated! thanks, max -- You received this message because you are subscribed

Re: [Rails] Rails 3.0.7 - validates uniqueness, factory girl, and transactions with rspec

2011-11-07 Thread Max Schubert
Turned out that an earlier mail thread you had responded on, Dave, had the answer - I hadn't looked into the model code deeply enough till today to realize our uniqueness constraints were missing :scope conditions to constrain them properly! - Max -- You received this message because yo

Re: [Rails] Rails 3.0.7 - validates uniqueness, factory girl, and transactions with rspec

2011-11-06 Thread Max Schubert
are resolved as the database_cleaner gem lets you choose a number of different strategies for cleaning. Yeah, Dave, same Max from Comcast - and will do! - Max -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to th

[Rails] Rails 3.0.7 - validates uniqueness, factory girl, and transactions with rspec

2011-11-06 Thread Max Schubert
risk losing the idempotency of tests? If your response adds value to the thread I don't care if you top post or not :) Max On 11/4/11, JavierQQ wrote: > Hi > > I hope someone can help me with this > > I have a model Question, and its controller .. what I've done to &

[Rails] What is the "rails way" to filter an index actions results?

2011-11-04 Thread Max
. Thanks, Max -- 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

[Rails] Re: rubygems Problem on ubuntu 10.04

2011-11-01 Thread Max
A really good resource for setting up ubuntu for rails/ruby is: http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/ hope that helps. On Oct 30, 7:11 pm, "MaT 2." wrote: > hello.. > > i have problem with rubygems version 1.8.7 on ubuntu 10.04 server LTS > 64bit.this rubygems i also try bot

[Rails] how to change db values without a form

2011-10-27 Thread Max
HI all, I have an index page in my site and each item displayed from the model has a link (that looks like a button)... I want that link to simply clear a field (or set it to some value) in the underlying model for that entry... The page does not have a form on it and i'd like to avoid that if pos

[Rails] Re: Deploy demo web rails to heroku error

2011-10-24 Thread Max
if you enter "heroku logs" you can often get more info on what's going on for the heroku errors... that usually helps a lot. Heroku will not work with sqlite.. i found that postresql worked great once i got the gemfile set up properly... Here is what i'm using... i hope this helps: source 'http

[Rails] Re: ActiveRecord::ConnectionNotEstablished

2011-10-24 Thread Max
what's the url for your git repo I'll take a look at it off the top of my head, it shouldn't be a db issue as there's no db at that point of the tutorial... a quick google did make it sound like a db issue... but i can't tell much unless i can look at the source On Oct 23, 10:12 pm, DMAT

[Rails] Re: ROR setup on ubuntu machine

2011-10-24 Thread Max
or you can install aptitude using sudo apt-get install aptitude and then use it later... On Oct 23, 11:35 pm, amvis wrote: > thank you, i forgot to change that aptitude into apt-get. > > Thank you > vishnu -- You received this message because you are subscribed to the Google Groups "Ruby on

[Rails] Re: Ruby on rails with twitter integration

2011-10-23 Thread Max Reznichenko
Hi, amvis, Isn't it an error of just wrong username/password? -- 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 rubyonra

[Rails] Re: Installing RoR

2011-10-22 Thread Max
I dont think you want to install ruby 1.8.7 with rails 3.0.0 i was never able to get everything working in windows reliably so i went with ubuntu on my windows box and have good success with that.. But one problem i had wad trying to use the older ruby with the newer rails I did find so

[Rails] ruby/rails training

2011-10-12 Thread Max
HI all, I was wondering if any of you can recommend some ruby/rails training? I am currently working through tutorials and practicing RTFM but wondered if there were some good programs you knew of.. some of the boot camps look good.. -- You received this message because you are subscribed to

[Rails] Re: ROR setup on ubuntu machine

2011-10-12 Thread Max
I am a total newbie.. after messing with cygwin and minw in windows i installed ubuntu 11.04 on my laptop and did a lot of googling.. installed twice to get it to where it is (right? we'll see) but am using rvm.. it wasn't that hard and went smoothly... there are some specific install sites on th

[Rails] testing: setting up checkbox value and tutorial problems

2011-10-09 Thread Max
I have been working through Hartl's tutorials and am in chapter 11... almost done with it but have found a couple problems and am at a loss for solving them. First, prior to trying to add the ability to edit admin status all my tests were passing and if i take that one test out they pass again... 1

[Rails] Re: testing: setting checkbox value

2011-10-09 Thread Max
i apologize, didn't mean to write this as a reply. meant it as a new subject.. will repost... doh! On Oct 8, 11:32 pm, aa...@xmission.com wrote: > I have been working through Hartl's tutorials and am in chapter 11...   > almost done with it but have found a couple problems and am at a loss   > fo

Re: [Rails] DOUBT

2011-10-01 Thread Max Schubert
Please be more specific about what you mean by 'never be altered' - what use case / situation are you resolving? On 9/28/11, sithara suresh wrote: > I NEED TO CREATE A CONSTANT SUCH THAT IT CAN NEVER BE ALTERED..IN RUBY > > Is it possible?? > > -- > You received this message because you are subsc

[Rails] ExecJS::RuntimeError in Users#index when doing second demo...

2011-10-01 Thread Max
r this bug but it doesn't seem to fix it on my sys - i double checked the gem version and i have the newest.. still no luck. I'm using Windows XP, ruby 1.8.7, rails 3.1.0 and i also tried the new rc1 version.. same problems... here's the error: ExecJS::RuntimeError in Users#index S

Re: [Rails] Ruby on Lion: How to have multiple ruby versions running?

2011-07-16 Thread Max Schubert
Absolutely! On 7/16/11, Hassan Schroeder wrote: > On Sat, Jul 16, 2011 at 10:48 AM, Max Schubert > wrote: > >> You will most likely come to appreciate it very much if you transition >> between frameworks and/or web containers. > > Or if you have a mix of new/gr

Re: [Rails] Ruby on Lion: How to have multiple ruby versions running?

2011-07-16 Thread Max Schubert
getting everything working with 192 MRI. You will most likely come to appreciate it very much if you transition between frameworks and/or web containers. Max On 7/16/11, Max Schubert wrote: > Woah, woah, wait - we all know bomb is an official computer science term > for > > 'de

Re: [Rails] Ruby on Lion: How to have multiple ruby versions running?

2011-07-16 Thread Max Schubert
Law wrote: > On 16 July 2011 17:47, Max Schubert wrote: >> Rvm is the bomb! > > Presumably this is in the context of a virtual universe where bombs > are good. Or do you mean that it will blow up the machine? > > Colin > >> >> On 7/16/11, Chris Mear wrote

Re: [Rails] Ruby on Lion: How to have multiple ruby versions running?

2011-07-16 Thread Max Schubert
Rvm is the bomb! On 7/16/11, Chris Mear wrote: > On 16 Jul 2011, at 03:14, Mel Brands wrote: > >> Is there a best practice guideline that tells you how to compile, >> install & run different ruby interpreters and different version of >> gems? > > Use RVM: > > https://rvm.beginrescueend.com/ > >

[Rails] How to access routes in Rails 3.1 in assets js.erb

2011-06-24 Thread Max Zelinski
I'm porting my 3.0 Rails project to 3.1 rc4 and I got a js.erb which is located in views folder that places url of one of my controllers in result js. I want to move this js.erb under assets because there are no logic except this and keeping controller just for that is an overhead in Rails 3.1 f

Re: [Rails] Spreadsheet view in rails + share options

2011-06-13 Thread Max Schubert
Investigate javascript grids - there is a growing collection of both free and pay-for clieent side grid frameworks available :) Extjs Jquery grid Are two that come to mind. Max On 6/13/11, sar_dev wrote: > Hi > > I need to create a single page spreadsheet web application in RAIL

Re: [Rails] how instance_eval on Object class creating class methods and not instance methods?

2011-05-17 Thread Max Schubert
I think you are just confused by the overloaded use of the words objct and class as opposed to the ruby classes named Object and Class. This diagram / project might help clarify http://objectgraph.rubyforge.org/dotOG.html From http://objectgraph.rubyforge.org/ Max On 5/16/11, John Merlino

Re: [Rails] save query string parameter value to database

2011-05-07 Thread Max Schubert
Your code example shows params[:fn] Your example URL has fname=cv On 5/7/11, farhad mahmoodi wrote: > I generate a controller and call create model method with parameter: > > > def add_item > Pers1.create(:fname => params[:fn], :lname => params[:ln]) > render :text => "Success!" >

Re: [Rails] Re: MyModel.descendants returns [] in a view after the first call?

2011-05-05 Thread Max Schubert
On Thu, May 5, 2011 at 2:17 PM, Fearless Fool wrote: > @Max: > > Fearless Fool wrote in post #996874: >> Until someone chimes in with a better idea, I'm adopting Max's approach >> (above). > > I thought you might want to know: I've implemented your approa

Re: [Rails] Re: MyModel.descendants returns [] in a view after the first call?

2011-05-05 Thread Max Schubert
refer this because it is just generating special behavior for the development environment instead of altering behavior on all environments. -= Max if Rails.env.development? # Bootstrap classes being referenced as we use meta-programming that # does not get called in development because class cac

Re: [Rails] Re: Better way to force some classes to be eager loaded in development mode with Rails 3.0.5 and class caching off?

2011-05-05 Thread Max Schubert
ironment just to fix a development environment behavior * Add a bunch of custom code to development.rb to work around the same and not have to pollute production code Both create additional 'remember to' tasks that undo a lot of the benefit the meta-programming is supposed to provid

Re: [Rails] Re: MyModel.descendants returns [] in a view after the first call?

2011-05-04 Thread Max Schubert
nd now it works.  BUT: this is a bug, right? Well, not really a bug - it is 'behavior as designed' but it is also a 'fail' for those of us using 'meta-programming as designed LOL' because meta-programming requires that classes be loaded and that the callbacks associated wit

  1   2   3   4   5   >