Re: [Rails] Development mode locally is unexplainable slow

2011-01-24 Thread Ivan Nastyukhin
in development 320 ms is not slow, because rails reload your class - structure. What a problem? On Jan 25, 2011, at 6:13 AM, ChristianP wrote: > Hi guys, > > Recently, my Rails project became oddly slow when running in > development mode locally. Example: > > Processing SessionsController#new (

Re: [Rails] which rails hosting?

2011-01-17 Thread Ivan Nastyukhin
+1 to heroku for start small project is fine after that u can move to EngineYard or your own servers EngineYard has a good support, really good) bud offers for server u can find more cheaper for example linode or rackspacecloud On Jan 17, 2011, at 8:09 PM, Bigos wrote: > Hi, > > I am about to

Re: [Rails] Re: Re: refactoring models

2011-01-13 Thread Ivan Nastyukhin
On Jan 14, 2011, at 12:23 AM, Marnen Laibow-Koser wrote: > Please quote when replying. > > Chris Habgood wrote in post #974782: >> Maybe so but you do not have to 3rd level normalize EVERY thing in a db. > > Yes, you absolutely *do* have to normalize at least to 3NF. The only > excuse for a d

Re: [ruby_on_rails] [Rails] Large (300mb - 1gb) file uplods?

2011-01-13 Thread Ivan Nastyukhin
for large file i recommend use nginx_upload_module http://matthewhutchinson.net/2010/1/6/nginx-upload-module-with-paperclip-on-rails On Jan 12, 2011, at 3:48 AM, David Kahn wrote: > > > On Tue, Jan 11, 2011 at 6:07 PM, Donald R. Ziesig wrote: > David, > > Check out paperclip. It will allow

Re: [Rails] paperclip save to disk and s3

2010-08-07 Thread Ivan Nastyukhin
Because it's in another scope of object And it's nothing give to u, it's one define some methods U can open paperclip source and find out how call upload to s3, or u can use aws-s3 gem, which simple, s3 is http based storage, simple http query, and all a done )) Sent from my iPad On Aug 8, 201

Re: [Rails] which ruby

2010-07-22 Thread Ivan Nastyukhin
mm, its in production? i wish say, that u are camikadze =) in other, u should use rc2 =) Ivan Nastyukhin dieinz...@me.com On Jul 22, 2010, at 9:19 PM, Ken Foust wrote: > I am using 1.9.2-head and rails 3 beta 4 > > should i use 1.9.2.RC2 or stay put till the august release >

Re: [Rails] Re: Non Model form with Validation

2010-06-22 Thread Ivan Nastyukhin
its slki) validation should be always duplicated at server side =) Ivan Nastyukhin dieinz...@me.com On Jun 22, 2010, at 11:51 AM, tsenart wrote: > You could also take a look at HTML5 form validation. > > On Jun 22, 8:33 am, Veera Sundaravel wrote: >> Hi, >> >>

Re: [Rails] Non Model form with Validation

2010-06-21 Thread Ivan Nastyukhin
are u using rails 3?) Ivan Nastyukhin dieinz...@me.com On Jun 21, 2010, at 8:34 PM, Rails Learner wrote: > Hi Everybody, > > I need to create a non model form. > But also I would like to validate the form fields as you would validate > a model form using valida

Re: [Rails] Re: [BUG] Segmentation fault

2010-06-21 Thread Ivan Nastyukhin
elease, 2010.02. I think the documentation should be updated with this fact. Ivan Nastyukhin dieinz...@me.com On Jun 21, 2010, at 5:15 PM, Fernando Brito wrote: > José Valim (member of Rails Core dev team) said that Rails 3 doesn’t support > ruby 1.9.1 (it makes some segmentation fault errors).

Re: [Rails] Re: [BUG] Segmentation fault

2010-06-21 Thread Ivan Nastyukhin
u can not do it on github.com/ruby ) but it dev version) and your program can crash =) and core-ruby developers, simlify ignore bugs with : Hi my rails app core-crash at latest ruby,=) Ivan Nastyukhin dieinz...@me.com On Jun 21, 2010, at 3:55 PM, Daniel Salmerón wrote: > Thanks I

Re: [Rails] Unknown action No action responded to 2. Actions: show

2010-06-21 Thread Ivan Nastyukhin
in routes, delete all, and write ActionController::Routing::Routes.draw do |map| resources :ads end then in console write rake routes u will see all routes in your application than go to guides.rubyonrails.com and start read it _ thanks Ivan Nastyukhin dieinz...@me.com On Jun

Re: [Rails] Re: [BUG] Segmentation fault

2010-06-21 Thread Ivan Nastyukhin
when u use head version, u cant be sure, thats your version is the same as all people in blogs) and of course, u can use some gem or plugin, witch incorrect with 1.9 head) Ivan Nastyukhin dieinz...@me.com On Jun 21, 2010, at 3:04 PM, Daniel Salmerón wrote: > Thanks Ivan, but how is

Re: [Rails] [BUG] Segmentation fault

2010-06-21 Thread Ivan Nastyukhin
i think, its bad idea, to use head version of 1.9.2 ruby, to development, and of cource for production too) use stable ree, and nothing now, because 1.9 is not ready for rails, yet Ivan Nastyukhin dieinz...@me.com On Jun 21, 2010, at 2:23 PM, Daniel Salmerón wrote: > First of all, I

Re: [Rails] Covert HTML to PDF

2010-06-17 Thread Ivan Nastyukhin
its easy use pdf-kit ) Ivan Nastyukhin dieinz...@me.com On Jun 17, 2010, at 7:14 PM, Joshua Martin wrote: > I was also going to suggest wkthml2pdf... but in the easy to use form of a > plugin called wicked_pdf... > > See this tutorial.. > http://snikt.net/index.php/2010/0

Re: [Rails] Covert HTML to PDF

2010-06-17 Thread Ivan Nastyukhin
hi look to wkhtml2pdf Ivan Nastyukhin dieinz...@me.com On Jun 17, 2010, at 7:04 PM, Rails Learner wrote: > Hello Everyone, > > I am working on a website where I am required to convert an HTML view > into a PDF document. I have found some gems and plug-ins like > PDF::Writ

Re: [Rails] Interpreter Problems

2010-06-17 Thread Ivan Nastyukhin
try to use ree http://www.rubyenterpriseedition.com/ Ivan Nastyukhin dieinz...@me.com On Jun 17, 2010, at 3:17 PM, Pale Horse wrote: > I really aren't sure why but my interpreter continues to fail after an > unknown amount of requests or time on my local (home) computer. I

Re: [Rails] Learning RoR

2010-06-16 Thread Ivan Nastyukhin
http://guides.rubyonrails.com/ hi, its will be help u) Ivan Nastyukhin dieinz...@me.com On Jun 16, 2010, at 3:13 AM, Ryan Kneer wrote: > Hey. I'm just getting into RoR and was hoping someone could direct me > to the best learning resources. > > P.S.: I took a couple

Re: [Rails] Different each iteration

2010-06-16 Thread Ivan Nastyukhin
does u speak about it ? http://api.rubyonrails.org/classes/ActiveRecord/Batches/ClassMethods.html Ivan Nastyukhin dieinz...@me.com On Jun 16, 2010, at 12:19 PM, Greg Ma wrote: > Hi, > I've read a few days ago that rails has a each method that allows you to > speficy

Re: [Rails] I installed rails 3 and how to install rails 2

2010-06-16 Thread Ivan Nastyukhin
simplify - u can use rvm or create link to /rails-2.3.8/bin/rails some thinks like this to /usr/local/bint/rails2 Ivan Nastyukhin dieinz...@me.com On Jun 16, 2010, at 11:02 AM, karnati kiran wrote: > Hi all, > > i installed rails 3 and how to install rails 2 in the same machi

Re: [Rails] Routing Error in rails 3.0

2010-06-16 Thread Ivan Nastyukhin
hi show your routes please Ivan Nastyukhin dieinz...@me.com On Jun 16, 2010, at 10:31 AM, karnati kiran wrote: > Hi All, > > > $rails g controller Pages home contact > > then, I go to http://localhost:3000/pages/home > > I got > > Routing Error > &

Re: [Rails] Mac and Rails

2010-06-16 Thread Ivan Nastyukhin
or u can use rvm with ree =) Ivan Nastyukhin dieinz...@me.com On Jun 16, 2010, at 2:09 AM, Walter McGinnis wrote: > Homebrew (http://github.com/mxcl/homebrew) is your friend for software > dependencies installation. > > Here's a rough guide that gives the process: >

Re: [Rails] Re: ActiveRecordConnection from jobs script

2010-06-15 Thread Ivan Nastyukhin
or thome think like this: ActiveRecord::Base.establish_connection Ivan Nastyukhin dieinz...@me.com On Jun 16, 2010, at 1:20 AM, Marnen Laibow-Koser wrote: > Greg Ma wrote: >> Hi, >> I make a cron jobs and I would like to use ActiveRecord. but I have this >> erro

Re: [Rails] Re: Session active_record_store

2010-06-11 Thread Ivan Nastyukhin
u write in your controller session[:blala] if u not write it, u are not using session Ivan Nastyukhin dieinz...@me.com On Jun 11, 2010, at 4:45 PM, Nick wrote: > On 2010-06-11 01:19, Frederick Cheung wrote: >> Rails won't create a session until you try and use one, whic

Re: [Rails] Re: "no route matches"

2010-06-11 Thread Ivan Nastyukhin
wil fix it Ivan Nastyukhin dieinz...@me.com On Jun 11, 2010, at 4:44 PM, Mark wrote: > Yes I am, is this a known problem? > > On 11 June, 13:15, Ivan Nastyukhin wrote: >> hi >> are u using haml ? >> >> Ivan Nastyukhin >> dieinz...@me.com >>

Re: [Rails] "no route matches"

2010-06-11 Thread Ivan Nastyukhin
hi are u using haml ? Ivan Nastyukhin dieinz...@me.com On Jun 11, 2010, at 4:09 PM, Mark wrote: > Hi all, > > I'm getting an error in my rails 3 app when trying to update a user's > profile: > > > Started POST "/users/1328-mturner&quo

Re: [Rails] Re: Choose ruby version for a Rails

2010-06-11 Thread Ivan Nastyukhin
install ree, and remove all your problems Ivan Nastyukhin dieinz...@me.com On Jun 11, 2010, at 2:31 PM, Yiannis wrote: > Thank you for your answer but can you be a little more specific? I > have ubuntu and I have already installed openssl libraries but it > doesn't work

Re: [Rails] How to get data from other website?

2010-06-11 Thread Ivan Nastyukhin
hi looking for mechanize and nokogiri Ivan Nastyukhin dieinz...@me.com On Jun 11, 2010, at 1:25 PM, Vuong Hung wrote: > Hi, everybody. > > I am newbie RoR. > > I want to get all data from other website. > > Thanks a lot and looking forward. > -- > Posted vi

Re: [Rails] How to get back to development mode?

2010-06-10 Thread Ivan Nastyukhin
hi cat config/database.yml please Ivan Nastyukhin dieinz...@me.com On Jun 10, 2010, at 12:15 PM, Xiaohua Dai wrote: > Hi , > > i run RAILS_ENV='production' rake db:migrate , script/server -e > production, i can successfully run in production environment now. > Bu

Re: [Rails] problems with basic Rails

2010-06-07 Thread Ivan Nastyukhin
not use 1.9.1 // crash log please Ivan Nastyukhin dieinz...@me.com On Jun 7, 2010, at 5:46 PM, An Car wrote: > Hi all, > I'm a newbie > > I've installed RoR on win 7 and this is script\about > > About your application's environment > Ruby vers

Re: [Rails] REE and ruby PATH problem

2010-06-06 Thread Ivan Nastyukhin
sudo ln -s /opt/ruby-enterprise-1.8.7-2010.01/bin/ruby /usr/bin/ruby sudo ln -s /opt/ruby-enterprise-1.8.7-2010.01/bin/gem /usr/bin/gem sudo ln -s /opt/ruby-enterprise-1.8.7-2010.01/bin/rake /usr/bin/rake Ivan Nastyukhin dieinz...@me.com On Jun 7, 2010, at 10:19 AM, tispratik wrote: >

Re: [Rails] Re: running passenger + nginx

2010-06-06 Thread Ivan Nastyukhin
u can use it http://gist.github.com/428270 for manage your nginx Ivan Nastyukhin dieinz...@me.com On Jun 7, 2010, at 9:50 AM, Gordon Yeong wrote: > i think i found something. > Just send a SIGHUP signal to the nginx process via kill. > Seems to work well. > Anyone got a

Re: [Rails] Alternative to ActiveRecord for populating model objects??

2010-06-04 Thread Ivan Nastyukhin
active resource with rest api from your java model or jruby and use natvie java classes Ivan Nastyukhin dieinz...@me.com On Jun 4, 2010, at 8:11 PM, Raf Jaf wrote: > Hi, > > We are using Ruby on Rails for an internal project. The data for our > model objects exists in many di

Re: [Rails] Running Application

2010-06-04 Thread Ivan Nastyukhin
yep) the radical decision, its stop using rails and windows, many bugs wil be waiting u in the future) the next, add this dll to library path, or system folder Ivan Nastyukhin dieinz...@me.com On Jun 4, 2010, at 6:20 PM, anon_comp wrote: > I'm getting an error message when I tr

Re: [Rails] Re: Re: Session, memory_store & NoMethodError

2010-06-03 Thread Ivan Nastyukhin
if u store models, at session - u are wrong u should save, only ids to db, may be drafts, buts 4kb its normal for 99.8% situations Ivan Nastyukhin dieinz...@me.com On Jun 3, 2010, at 8:46 PM, Chdem Chdem wrote: > Because cookie store imply a strict size limit of

Re: [Rails] Authlogic on Rails 3 with Checkbox

2010-06-03 Thread Ivan Nastyukhin
hi what is checkboxes?) mm, standart <% form_for @user do |f| %> <%= f.check_box :field_name_at_model(db) %> <% end %> Ivan Nastyukhin dieinz...@me.com On Jun 3, 2010, at 8:07 PM, Siva Kilaru wrote: > Hello guys, > > I had a quick question. Does Authlogi

Re: [Rails] Re: Session, memory_store & NoMethodError

2010-06-03 Thread Ivan Nastyukhin
why topic starter, not use cookie store? Ivan Nastyukhin dieinz...@me.com On Jun 3, 2010, at 8:04 PM, Frederick Cheung wrote: > > > On Jun 3, 4:39 pm, Chdem Chdem wrote: >> Ok, I have more informations : >> >> I can read the array from session if I mo

Re: [Rails] Re: Has many_through, how to show only unassociated fields for a category?

2010-06-03 Thread Ivan Nastyukhin
> > associatedFields = @category.fields > allFields = Field.all > > available = allFields - associatedFields Field.all :conditions => ["id not in (?)", @category.fields.all.map(&:id)] Field.where(["id not in (?)", @category.fields.all.map(&:id)])

Re: [Rails] Re: Re: Return partial from a xhr request

2010-06-03 Thread Ivan Nastyukhin
interface ;-) > I'd take, I'd go with a partial first and optimise to JSON/JS rendering if > required later. in phase of prototyping, i thing we can completely remove all ajax, calls if we can. Ivan Nastyukhin dieinz...@me.com On Jun 3, 2010, at 6:36 PM, Andy Jeffr

Re: [Rails] Re: Re: Return partial from a xhr request

2010-06-03 Thread Ivan Nastyukhin
"by default" use case, this is my opinion of course, i will not be try to convince u) Ivan Nastyukhin dieinz...@me.com On Jun 3, 2010, at 6:23 PM, Andy Jeffries wrote: > On 3 June 2010 15:17, Ivan Nastyukhin wrote: >>if request.xhr? >> render :partial

Re: [Rails] Virtual/Flexible attributes on model

2010-06-03 Thread Ivan Nastyukhin
may be watch to documented db? something like mongodb? Ivan Nastyukhin dieinz...@me.com On Jun 3, 2010, at 6:20 PM, Michael Pavling wrote: > On 3 June 2010 15:15, Andy Jeffries wrote: >> class UserAccount < ActiveRecord::Base >> serialize :meta_data, Hash >> en

Re: [Rails] Custom error message for authenticate_or_request_with_http_basic

2010-06-03 Thread Ivan Nastyukhin
entificated bla-bla-bla end authentificated end end end simplify this) Ivan Nastyukhin dieinz...@me.com On Jun 3, 2010, at 6:18 PM, Matthew Hillsborough wrote: > Hello, > > I'm using basic http authentication in my rails app

Re: [Rails] Virtual/Flexible attributes on model

2010-06-03 Thread Ivan Nastyukhin
agree, eav, is build based on data serialization try it, if u will be required more, than simply switching to eav Ivan Nastyukhin dieinz...@me.com On Jun 3, 2010, at 6:15 PM, Andy Jeffries wrote: > On 3 June 2010 15:06, Michael Pavling wrote: > I've a requirement to put some u

Re: [Rails] Re: Re: Return partial from a xhr request

2010-06-03 Thread Ivan Nastyukhin
will be huge. Insert big html into dom, is slower then build its in js. > Optimal performance isn't necessarily the only criteria in success... yep agree with u code readability, and understandable to developers, probably two main factors Ivan Nastyukhin dieinz...@me.com On Jun 3, 2

Re: [Rails] Re: Re: Return partial from a xhr request

2010-06-03 Thread Ivan Nastyukhin
mm, u can do it but 1) u should write yet anothe action at controller, its not like REST 2) its will be more slower, than render at mobile device, from json Ivan Nastyukhin dieinz...@me.com On Jun 3, 2010, at 5:39 PM, Andy Jeffries wrote: > I'd do it as the OP requested, have a

Re: [Rails] Return partial from a xhr request

2010-06-03 Thread Ivan Nastyukhin
people not use rjs, its ugly Ivan Nastyukhin dieinz...@me.com On Jun 3, 2010, at 5:28 PM, Bill Walton wrote: > Hi Greg, > > On Thu, Jun 3, 2010 at 8:05 AM, Gregory Mar wrote: >> Hi, >> I am working on a mobile device dev using javascript and I use a remote >>

Re: [Rails] Re: Return partial from a xhr request

2010-06-03 Thread Ivan Nastyukhin
yes its better choise Ivan Nastyukhin dieinz...@me.com On Jun 3, 2010, at 5:18 PM, Gregory Ma wrote: > Ivan Nastyukhin wrote: >> yep u can >> >> index.js.erb >> >> and in it, render your response >> >> buts its worse idea, return json, and b

Re: [Rails] Return partial from a xhr request

2010-06-03 Thread Ivan Nastyukhin
yep u can index.js.erb and in it, render your response buts its worse idea, return json, and build dom Ivan Nastyukhin dieinz...@me.com On Jun 3, 2010, at 5:05 PM, Gregory Mar wrote: > Hi, > I am working on a mobile device dev using javascript and I use a remote > Rails ap

Re: [Rails] how to "float" layouts/partials so that they stay in a static position in the browser?

2010-06-03 Thread Ivan Nastyukhin
css + position fixed google it Ivan Nastyukhin dieinz...@me.com On Jun 3, 2010, at 4:58 PM, Lille wrote: > Hi, > > Anybody know how to "float" an element like a partial so that it stays > in the same position relative to the browser window frame? > > (My

Re: [Rails] Open Source Contribution

2010-06-02 Thread Ivan Nastyukhin
Sadly that u are use sourceforge.net, because at rails community, in the current realities, if project is no at github.com, its likely dead.) Ivan Nastyukhin dieinz...@me.com On Jun 2, 2010, at 11:41 AM, tramuntanal wrote: > Hi Gilherme, > > I'd like to improve story m

Re: [Rails] which is faster

2010-05-16 Thread Ivan Nastyukhin
I think, make code more readable, understanndable, and your api more near to rest. Because when u thinking about 0.00034 ms, u make stupid decision Sent from my iPhone On 16.05.2010, at 4:04, Iván Hernández Cazorla om> wrote: I think that the most optimal option is the second, 5 controller

Re: [Rails] how to change photo size from 300k -> 100k?

2010-04-21 Thread Ivan Nastyukhin
imagemagic -quality On Apr 21, 2010, at 5:18 PM, Chandle WEi wrote: > In ruby how to change photo size from 300k -> 100k? > have any methods? > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send em

Re: [Rails] Problem with require 'RMagick'

2010-04-13 Thread Ivan Nastyukhin
1) rmagic - is an old bastard whose time has long thrown out and entirely adequate ruby community to forget 2) paperclip mini_magic On Apr 13, 2010, at 7:48 PM, Andy Jeffries wrote: > On 13 April 2010 16:41, Ivan Nastyukhin wrote: > Please, people > Not use rMagic > It fucking mac

Re: [Rails] Problem with require 'RMagick'

2010-04-13 Thread Ivan Nastyukhin
Please, people Not use rMagic It fucking machine will be eat all your memory On Apr 13, 2010, at 7:03 PM, Christophe Decaux wrote: > First, pardon me if this is not the right forum. > > I'm banging my head on the wall for a day now with a RMagick installation > issue. > > I installed ImageMagic

Re: [Rails] paperclip question

2010-04-04 Thread Ivan Nastyukhin
Rake paperclip:reprocess Sent from my iPhone On 05.04.2010, at 9:41, steve ross wrote: On Apr 4, 2010, at 10:13 PM, bramu...@gmail.com wrote: Hi All, My application is using paperclip and its working fine without any problems, I am able to generate the thumb images and big images from actu

Re: [Rails] CAN'T FIND without an ID

2010-04-03 Thread Ivan Nastyukhin
Show your method and filters Sent from my iPhone On 04.04.2010, at 6:05, David Zhu wrote: I'm getting this error- ActiveRecord::RecordNotFound in PagesController#create Couldn't find Course without an ID -- Btw, the pages belongs to courses, and the courses has many pages Now, in my

Re: [Rails] Amazon S3 and ffmpeg

2010-03-22 Thread Ivan Nastyukhin
buy ec2 upload directly to s3 then ec2machine(or ferm) download from s3, convert, and upload to s3 traffic between ec2 and s3 free __ Best Regards, Dieinzige On Mar 22, 2010, at 7:23 PM, James Finley wrote: > So we are setting up a file upload system for our web app. Files will > be uploaded to

Re: [Rails] Most popular IDEs for Ruby on Rails development

2010-03-12 Thread Ivan Nastyukhin
Our , yes, but i prefer textmate, because windows is not os __ Best Regards, Dieinzige On Mar 12, 2010, at 1:32 PM, Krum Bakalsky wrote: > Maybe notepad is enough for you ? :) __ Best Regards, Dieinzige On Mar 12, 2010, at 1:25 PM, Ivan Nastyukhin wrote: > IDE ? Ruby? What th

Re: [Rails] Most popular IDEs for Ruby on Rails development

2010-03-12 Thread Ivan Nastyukhin
IDE ? Ruby? What the fuck ?) __ Best Regards, Dieinzige On Mar 12, 2010, at 1:24 PM, Krum Bakalsky wrote: > Hi guys, > > Can you tell me which are the most popular and widely used IDEs for > Ruby, and for Ruby on Rails development ? According to your > impressions ? > What do you use the most ?

Re: [Rails] how database driven content localization is done?

2010-03-11 Thread Ivan Nastyukhin
show source of I18n , and use placeholders. No problem __ Best Regards, Dieinzige On Mar 11, 2010, at 10:14 PM, karikrishni wrote: > Hi, > > We are developing a site which needs to be localized, But we store the > content into the database records. Anyone has ideas about how to > localize a data

Re: [Rails] How to do personal domains like del.icio.us

2010-03-05 Thread Ivan Nastyukhin
1. Use subdomains and cname records. 2if name unic, in your model write def to_param name end Sent from my iPhone On 06.03.2010, at 10:08, Cristian Vasquez wrote: Hi, I am looking for a solution in my application, i want to provide a personal "domain" to my users just like del.icio.us do,

Re: [Rails] Re: how to share variables in data migrations (up/down)

2010-03-04 Thread Ivan Nastyukhin
Because migration for definition structure and manage it.for fill data use seeds , or SQL files. Sent from my iPhone On 04.03.2010, at 19:03, Hassan Schroeder wrote: On Thu, Mar 4, 2010 at 5:18 AM, Marnen Laibow-Koser wrote: However, your original example is problematic. You appear to