Why would I use a company for Rail development when their own website was
written in PHP? Are you primarily PHP development trying to get into Rails?
--
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,
We use pdfkit for pdf and axlsx for excel.
On Sunday, October 19, 2014 8:53:32 AM UTC+5:30, piyhawat sudsri wrote:
I am new RoR developer. By now, I've learn rails MVC concept and
build some application. I've tried to export the data on screen to report
(pdf or excel file)
validates :user, uniqueness: true
is simple way(When you specify association then it also check other model
validation) also other way is add custom validation for check uniquness
On Wednesday, October 8, 2014 6:50:25 PM UTC+5:30, GeorgeFromTheBank wrote:
Hello,
I want to restrict my
Thank you so much Mr. Colin I solved the problem. I forget i used the
instance of the customer
[def create
@customer = Customer.find(params[:customer_id])
@project = Customer.projects.create(project_params)
end] ..
It should be
[def create
@customer = Customer.find(params[:customer_id])
When we using Unix system for ror setup , we use therubyracer gem but
therubyracer is not working on the windows platform. On windows platform
use node-js.
Also other way is remove reuqire tree in application js file but this not
correct way.
On Monday, October 6, 2014 9:44:00 AM UTC+5:30,
In Rails 2 we use
ruby script/generate migration table_name
On Thursday, September 25, 2014 12:43:12 PM UTC+5:30, M,Gopi M.gopinath
wrote:
Hi,
I am trying to add a field in a existing table (database) in Rails 2.3.5
and ruby 1.8.6.
I gave a command to generate a migration, Here as
Thank you so much Mr. Sampath. I solved the problem. I forget that i
should used the instance of the customer
[def create
@customer = Customer.find(params[:customer_id])
@project = Customer.projects.create(project_params)
end] ..
It should be
[def create
@customer =
What's the current best practice for getting the userID from the sesson,
and having it be part of every newly created/modified record?
I have an app with a Club model and a People model, and a membership
join table.
class Club ActiveRecord::Base
has_many(:memberships)
* Is the user logged in? Are you using devise gem? If so (recommend), you have
access to the current user using the current_user controller variable (provided
by devise). Using devise with a proper authentication system is the way to go.
There are alternatives to devise too.
More responses
[I thought that I'd avoid the distraction of critiquing my app in
general by only posting code relevant to my question, but
whatever--there's good advice here from Jason]
On Mon, 20 Oct 2014 13:58:29 -0400
Jason Fleetwood-Boldt t...@datatravels.com wrote:
I want all the tables, including the
You might want to look into New Relic http://newrelic.com/ for
application performance monitoring. There's also several other services
that are beneficial including Code Climate https://codeclimate.com/,
Gemnasium https://gemnasium.com/, and Raygun http://raygun.io/. Each
of these services
Hey
I am adding another database to my first one and i created the html to work
showing the data but when i want to create a new entry this error occurs. I
have a new controller with everything in it but not sure why it doesnt work.
ActionController::UrlGenerationError in Shopping#new
i'm trying to decide among three ways to implement a talbleless model.
1. Active Record w/out migration
2. ActiveModel
3. ActiveAttr
Relationships and validations are highly desirable. I know ActiveRecord
will do that but will the other 2 as well. Is the ActiveRecord method
a hack and
13 matches
Mail list logo