to wikipedia. But Rails 2.2 is quite
> old, you should prepare to rewrite ;)
>
> S Ahmed <sahmed1...@gmail.com> schrieb am Mi., 16. Aug. 2017 um 04:34 Uhr:
>
>> In rails 2.2 there was checks in the code like:
>>
>> if request.post?
>> ...
In rails 2.2 there was checks in the code like:
if request.post?
...
if request.xhr?
end
...
end
If a HTTP POST is made, how would also be considered a XHR request?
Thanks!
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk"
ah, 4.2.Z.
Missed that!
On Wed, Aug 2, 2017 at 9:35 PM, Hassan Schroeder <hassan.schroe...@gmail.com
> wrote:
> On Wed, Aug 2, 2017 at 6:31 PM, S Ahmed <sahmed1...@gmail.com> wrote:
>
> > Not the latest, but what is the oldest version that is still supported by
>
rted and available for download.
>
> This http://rubyonrails.org/ will tell you what's the latest version of
> Rails you can use. Currently it says 5.1.2.
>
>
> On Wed, Aug 2, 2017 at 11:22 PM, S Ahmed <sahmed1...@gmail.com> wrote:
>
>> Hi,
>>
>> Where can
Hi,
Where can I see which version of rails is currently still being supported?
Also, what ruby version is still supported also?
Thanks!
--
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
.
>
> Either way it’s going to require time and money to some degree.
>
> On May 13, 2017, at 2:44 PM, S Ahmed <sahmed1...@gmail.com> wrote:
>
> Looks interesting, but I am looking for something that I have total
> control over and not a 3rd party service that costs $$
n with a couple of
> clicks.
>
> Sent from my iPhone
>
> On May 11, 2017, at 3:25 PM, S Ahmed <sahmed1...@gmail.com> wrote:
>
> Hi,
>
> Are there any good server automation scripts that can bootstrap a Rails
> server on something like linode/digitalocean that you can re
Hi,
Are there any good server automation scripts that can bootstrap a Rails
server on something like linode/digitalocean that you can recommend?
Something that installs basic security, Rails, postgresql, and nginx etc?
Thanks!
--
You received this message because you are subscribed to the
Currently I have this and it works:
has_many :reports, -> { order(id: :desc) }
I added this and it works:
has_many :reports, -> { order(id: :desc) }, :dependent => :destroy
But this doesnt:
has_many :reports, :dependent => :destroy, -> { order(id: :desc) }
Can someone explain why the last
There is a pretty strong market in toronto, but it is a niche so there
aren't a TON of companies like say for php or .NET.
It is pretty easy to find the companies yourself since it is a niche, you
don't really need a recruiter.
On Wed, Jan 21, 2015 at 4:45 AM, Mickey Kocic li...@ruby-forum.com
Hi Fred,
Yes that is what I was thinking, meeting in-person has many advantages :)
I'm actually in Toronto.
On Fri, Aug 22, 2014 at 9:58 AM, Frederick Cheung
frederick.che...@gmail.com wrote:
On Thursday, August 21, 2014 8:30:15 PM UTC+1, Gitted wrote:
Hello All,
I have always wanted
Hello All,
I have always wanted to attend a Rails conference, and as a side benefit I
figured it would be a great place to meet people who are looking for
developers.
For those of you who have attended some in the past, does there tend to be
allot of remote work being advertised or is it mostly
does anyone else see duplicate log entries like this?
I'm using rails 4.1.1
On Wed, Jul 2, 2014 at 12:22 PM, S Ahmed sahmed1...@gmail.com wrote:
Hi,
I'm using 4.1.1
When in console, whenever I make a AR query I see the same log message 2
times
e.g.
Loading development environment
Hi,
I'm using 4.1.1
When in console, whenever I make a AR query I see the same log message 2
times
e.g.
Loading development environment (Rails 4.1.1)
2.1.1 :001 Category.find(2)
*Category Load (0.9ms)* *SELECT categories.* FROM categories WHERE
categories.id = $1 LIMIT 1* [[id, 2]]
I installed ruby 2.1.0 using rvm.
It asked me to enter my password so it coudl copy a file to
/etc/openssl/cert.perm
Is this normal? why?
thanks!
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To unsubscribe from this group and stop
Hi,
I have the following:
GET /account/create
POST /account/oncreate
My create action looks like:
def create
@user = User.new
end
def oncreate
@user = User.new(params)
if @user.valid?
...
else
render 'create'
end
end
But when the form submission submits and fails,
I am inside a model, and need to create another model, how to I pass 'this'
as a parameter?
Example:
class User AR
has_one :company
def create_associations!
@company = Company.build_with_user(this)
end
end
So I'm trying to create the company association using a method from the
self :)
On Thu, May 8, 2014 at 11:03 AM, S Ahmed sahmed1...@gmail.com wrote:
I am inside a model, and need to create another model, how to I pass
'this' as a parameter?
Example:
class User AR
has_one :company
def create_associations!
@company = Company.build_with_user
Depends on where you live in the US and ofcourse your level of experience,
but it could be 70-90 to 100-125 to 150-200.
On Tue, May 6, 2014 at 5:07 PM, Michael Houghton mich...@cakecoded.comwrote:
I've been programming PHP for 12 years, and CakePHP for 6 years -
freelancing full time for most
does the route exist? what is the error you get?
try rake routes to see if user_path exists.
On Wed, May 7, 2014 at 6:27 AM, Alfredo Barrero abarrer...@gmail.comwrote:
Hi guys, can someone tell me why I can't use routes like user_path in
custom layouts like 'user-layout.html.erb' ???
If a rails generated form shows a form input field with a name like:
name=company[users_attributes][5][birth_date]
What kind of model setup does that normally mean assuming it is following
convention?
Or is this not following convention?
--
You received this message because you are
I imagine if you go through an agency they are taking a 25-30% cut.
On Wed, May 7, 2014 at 8:57 AM, Dave Aronson
googlegroups2d...@davearonson.com wrote:
On Tue, May 6, 2014 at 5:07 PM, Michael Houghton mich...@cakecoded.com
wrote:
There is a huge demand for RoR work however from what I
, 2014, at 3:51 PM, S Ahmed wrote:
If a rails generated form shows a form input field with a name like:
name=company[users_attributes][5][birth_date]
What kind of model setup does that normally mean assuming it is
following convention?
Or is this not following convention
50K online users won't work on a budget host with Rails.
Are you dreaming you will get 50K online users at peak or is that something
you have now? I'm guessing it a dream/projection otherwise you would know
that bluehost won't get you there :)
On Tue, Nov 5, 2013 at 6:03 AM, Fahad Idrees
Is it possible to surpress all those asset related messages?
I have a terminal open where I run 'rails s' and it gets hard to read.
--
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
I see, so is phusion the only one that automatically grows to meet demand?
On Fri, Feb 8, 2013 at 2:27 AM, Frederick Cheung frederick.che...@gmail.com
wrote:
On Friday, February 8, 2013 4:34:26 AM UTC+8, Gitted wrote:
Does unicorn work like phusion in that it automatically forks based on
Does unicorn work like phusion in that it automatically forks based on
traffic levels?
Or is that what thin does also?
--
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
Where exactly would be the 'low level' code for rails? I want to trace the
code, and I want to understand the how rails is setup.
Is it based on rack?
Where should I be looking in the source?
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk
Where is the rails 4 branch?
https://github.com/rails/rails
--
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
:)
I wasn't expecting it to be the master branchis there a rough eta on
it?
On Tue, Jan 1, 2013 at 9:39 PM, Jordon Bedwell envyge...@gmail.com wrote:
On Tue, Jan 1, 2013 at 8:37 PM, S Ahmed sahmed1...@gmail.com wrote:
Where is the rails 4 branch?
https://github.com/rails/rails
You
Hi,
I believe the /vendor folder stores the source code for gems locally
correct? i.e. so it won't look in the global gem folder or gemset if you
are using rvm.
How do you transfer/download the gemfiles gems to your /vendor folder?
Does this mean you could avoid needing rvm on your server if
that's what TDD is for j/k
On Tue, Oct 30, 2012 at 3:53 AM, Jordon Bedwell jor...@envygeeks.comwrote:
On Tue, Oct 30, 2012 at 2:43 AM, hanish jadala
emailtohoneyr...@gmail.com wrote:
can you give your mail id to send Resume
Already failed. Look at the bottom of his email. Also, if you
Hi,
Does anyone know of a good reliable chef recipe to bootstrap a Rails
environment?
I'm looking for ideally rails, phusion, nginx, mysql, etc.
--
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
I have a postscontroller, with a show method:
def show
...
end
I want to match the following url pattern to this controller action:
/posts/123
Shoudl go to the postscontroller, show method with id=123
--
You received this message because you are subscribed to the Google Groups Ruby
on
How can I change the layout in the action method?
def show
if(params[:id] 0)
layout :layout1
else
layout :default
end
end
Is this possible?
--
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
I am trying this:
I want to replace all the text in between java comments:
/* start */
replace this text here
/* end */
I'm trying:
text.gsub(//* start */(.*)/* end *//im, replace_with)
But i'm getting errors relating to expecting keyword_end.
How should I be escaping /* and */ ?
Also,
thanks!
BTW, is it possible that during the replace, it leaves the start/end tag?
Currently it is replacing it also, I want the comments to be there after
the replacement.
On Sun, Sep 30, 2012 at 7:49 PM, bricker bricke...@gmail.com wrote:
You have to escape the slashes and asterisk in the
I have a simple require call that is failing with:
ruby mycar.rb
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require': cannot load such file -- mycar/car (LoadError)
from
'./mycar/car'
On Sun, Sep 23, 2012 at 6:29 PM, S Ahmed sahmed1...@gmail.com wrote:
I have a simple require call that is failing with:
ruby mycar.rb
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require': cannot load such file -- mycar/car
# this works
Car.new #didn't work
On Sun, Sep 23, 2012 at 5:46 PM, S Ahmed sahmed1...@gmail.com wrote:
Why doesn't mine work, very confused??
I've never seen that require in any gems on the web thought?
https://github.com/ryanb/cancan/blob/master/lib/cancan.rb
require 'cancan/ability'
require
I see what your saying.
I guess what I am asking then is, when developing your own gem, say I am
developing my gem on my Mac in:
/Users/me/projects/ruby/gem/some_gem_name/
So this means I have to somehow modify my load_path so that I can just
require things like:
require 'folder/file'
And
just get a Mac, you won't regret it (even a Mac mini if you cannot afford
more than $600)
On Tue, Sep 18, 2012 at 10:38 PM, lyosha lyosh...@gmail.com wrote:
man.. why does everything is so slow on developing on windows?
--
You received this message because you are subscribed to the Google
I have a controller:
class HomeController ApplicationController
def index
end
def about
end
def contact
end
def terms
end
def privacy
end
end
My routes.rb has:
resources :home do
member do
get 'about'
get 'contact'
get 'terms'
get 'privacy'
...@fernandoalmeida.net wrote:
Use collection instead member
http://guides.rubyonrails.org/routing.html#adding-more-restful-actions
2012/9/19 S Ahmed sahmed1...@gmail.com
I have a controller:
class HomeController ApplicationController
def index
end
def about
end
def contact
, 2012 at 10:30 PM, S Ahmed sahmed1...@gmail.com wrote:
I don't have much experience with the new asset pipleine, but when
developing locally it seems things are very very slow to compile now.
Am I missing something or is this how the new asset pipleine rails
version is?
I highly recommend
any comments?
On Sun, Jul 1, 2012 at 10:30 PM, S Ahmed sahmed1...@gmail.com wrote:
I don't have much experience with the new asset pipleine, but when
developing locally it seems things are very very slow to compile now.
Am I missing something or is this how the new asset pipleine rails
I don't have much experience with the new asset pipleine, but when
developing locally it seems things are very very slow to compile now.
Am I missing something or is this how the new asset pipleine rails version
is?
--
You received this message because you are subscribed to the Google Groups
Trying to understand how the version of rails is handled in the gem file,
if you do:
gem rails
and call bundle, it from what I understand will pull down the latest stable
release right?
And then a gemlock file is created, which will contain the version number
so any future calls to bundle will
I read that if you create a .rake subfolder, you can run rake from any
subfolder in and it will pickup the rake tasks as long as you put the -g
option.
I have this:
/app/
/app/Rakefile
/app/.rake/test.rake
Now when I do:
rake -g -T
I only see the tasks defined in my Rakefile.
Does this work
My account controller is used for user registration.
And when the user signs-in, I have seperate controllers to add/update
things and they all inherit from a base controller that set's the layout to
a different layout and it ensures the person is signed in correctly.
Now I need to have a page
ok figured it out, I had to run seed on my test db.
thanks!
On Fri, Mar 2, 2012 at 8:17 PM, S Ahmed sahmed1...@gmail.com wrote:
Ok I added:
page.html
And my select is actually empty, it has no options! But when running
rails server I can see the select and options (and the dropdown list
Ok I added:
page.html
And my select is actually empty, it has no options! But when running
rails server I can see the select and options (and the dropdown list in the
browser).
Why is it not rendering using capybara?
My controller for new is:
@account = Account.new
My view page has:
%
Is there a rake shortcut to:
1. drop the db (dev and test)
2. create
3. migrate
4. run seed
Again for both dev and test environments.
I can create an alias, but curious if there is something built-in.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails:
thanks I'll try that tonight.
On Wed, Feb 29, 2012 at 12:29 AM, Anthony anthonyzachara...@gmail.comwrote:
Set the html_options parameter in collection_select to { :selected =
params[:friend_type] }
On Tuesday, February 28, 2012 7:44:01 PM UTC-8, Gitted wrote:
I have a form_for like:
%=
I have a form_for like:
%= form_for @user, |f| %
%= f.collection_select :friend_type, FriendType.all, :id, :name %
Now in my new action, I set the friend_type from the querystring, so it
already has a value of e.g. 3 (which is the id).
How can I have this pre-selected when it renders?
I want to append to my models error collection from another models errors
like:
@user.errors each do |e|
@post.errors e
end unless @user.valid?
But it says:
'undefined method for activemodel post .
What is errors then, a hash?
--
You received this message because you are subscribed
If I manually drop the database, and run create, then migrate it works fine.
But doing a:
rake db:reset
it fails with:
unknown attribute: user_status
Does this mean my migrations are not dropping things correctly?
--
You received this message because you are subscribed to the Google
It would be nice if there was a way to mirror things to RAILS_ENV=test also.
I hate having to do it for both.
On Sat, Feb 18, 2012 at 4:51 PM, Robert Walker li...@ruby-forum.com wrote:
Colin Law wrote in post #1047551:
On 18 February 2012 16:42, S Ahmed sahmed1...@gmail.com wrote:
Does
I want to learn all the possible options when doing:
rails new
Is there a way to output them?
--
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
I created a new project using:
rails new abc --no-test-framework -d mysql
Now when creating a model I showed:
createapp/models/account.rb
invoketest_unit
create test/unit/account_test.rb
create test/fixtures/accounts.yml
I am using rspec, and ran rspec
How can I fix this now (my project is already created)?
On Sun, Feb 12, 2012 at 8:36 AM, Xavier Dutreilh xav...@dutreilh.fr wrote:
--no-test-framework is not a valid option. You need to specify -T
or --skip-test-unit when creating a new project.
2012/2/12 S Ahmed sahmed1...@gmail.com
I
but future rails generators will create it again.
On Sun, Feb 12, 2012 at 11:57 AM, Dheeraj Kumar
a.dheeraj.ku...@gmail.comwrote:
Just remove the entire test directory.
Dheeraj Kumar
On Sunday 12 February 2012 at 10:21 PM, S Ahmed wrote:
How can I fix this now (my project is already
I have a model UserType that I reference in my application allot.
This is stored in the database, but I don't want to hit the db everytime I
reference the collection of UserTypes (it doesn't change unless I am
re-deploying the code or db so it is safe to make static).
How can I load all the rows
Can someone clarify for me what advantage engineyard provides over running
ec2 yourself?
Is it that they provide chef recipes, automate backup/restore scripts for
you via a web dashboard? Or is there something more to it?
i.e. if I have puppet scripts to create a server, and have backup/restore
Thanks.
When you add something to a helper like articles_helper, does it have the
request object in there also?
How does it get the @articles object when I call it like:
form_for @article, correct_post_path, ...
I would have though it would be:
form_for @article, correct_post_path(@article),
, S Ahmed sahmed1...@gmail.com wrote:
ah I see, this is what I have experienced.
But why is that? Shouldn't both getting and setting have similiar
behaviour?
I think when I was getting a value, using self.attribute wasn't working,
is
that the case or was I doing somehting else wrong
My have a form in a partial like this:
form_for @article, :url = articles_path, .
Now currently it posts to the create action.
I want it to post to comment_article_path under certain conditions, how can
I do this?
Can I put in a expression like:
@article.persisted? comment_article_path :
This is in a CMS type application, and the controller is for creating a
'page'.
I have:
def create
category = Category.find( params[:categor_id] )
text = params[:article_body]
article = Article.new
article.category_id = category.id
article.ip_address = request.remote_ip
I'm a little confused when I should be using 'self' in my model.
I had code like:
class User ActiveRecord::Base
before_save :do_something
def do_something
self.user_bio_text =
..
self.user_bio_text
end
end
If I removed 'self', it didn't seem to set the model's attribute at
Nill jvn...@gmail.com wrote:
On Thu, May 5, 2011 at 3:34 AM, S Ahmed sahmed1...@gmail.com wrote:
I'm a little confused when I should be using 'self' in my model.
I had code like:
class User ActiveRecord::Base
before_save :do_something
def do_something
self.user_bio_text
can rjs be used with jquery?
--
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-t...@googlegroups.com.
To unsubscribe from this group, send email to
Starting off with 15 fulltime RoR dev's is a waste of time, rails g all the
way! j/k
On Fri, Oct 1, 2010 at 12:28 PM, David Kahn d...@structuralartistry.comwrote:
Ar, but with the waterfall and all that they would not have
- Completed large projects for fortune 1000 clients
Unless the
I was recall reading that Ruby on rails has allot of options, can someone
run down some of the popular framework plugins?
I'm not really sure what that person meant, but I am guessing they are
related to: ORM's, view template engines?
I really want an idea of what's out there, in a summarized
73 matches
Mail list logo