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 (
+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
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
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
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
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
>
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,
>>
>>
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
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).
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
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
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
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
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
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
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
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
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
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
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
>
&
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:
>
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
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
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
>>
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
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
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
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
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
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:
>
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
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
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
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
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
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
>
> 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)])
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
"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
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
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
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
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
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
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
>>
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
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
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
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
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
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
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
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
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
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
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
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
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 ?
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
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,
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
61 matches
Mail list logo