Hello all!
I am new to all of this and I am trying to accomplish a couple things, I am
hoping that someone will be able to assist me…
First -
I am trying to set up a namespace within a dynamic link. I have created an
admin namespace and I need to following link to go to ../admin/people/xxx
Hello all! And thanks for your help and input.
I am in the process of building my first project for the company I work for
and I am stumped as how to tackle my database information problem.
What I am dealing with is a database with a list of users and a separate
table with a list of articles
Thank you for the welcome and the response!
What have given me works great! With the exception of the {:class =
button} which throws up a wrong number of arguments (4 for 0..3) error. I
am looking into this to see if I can find out more. I tried this also with
the button_to which makes the
Hello all and thank you for your time and help.
I am working on my first big project and one of the requests that I have is
to host a directory list people, with the option to click from an array of
buttons with the different position titles. Button examples being: Staff,
Faculty, Grad
I found a better VPN solution to unblock websites
https://www.waselpro.com/en/ I am using this VPN provider for a couple
of months with unlimited bandwidth and No restrictions over use.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the
The best VPN experience I had in a very long time
https://www.waselpro.com/en/ . I managed to hide my IP adress and
unblock websites directly with just one click application. It is not
easy to find a real good VPN provider.
--
Posted via http://www.ruby-forum.com/.
--
You received this
On Saturday, June 22, 2013 5:06:54 PM UTC-6, Bob O wrote:
Im having an issue that seems to only happen when trying to use a
transaction. Ive used transactions many times in the past and Im at a loss
as to why im getting the stack level too deep problem.
SystemStackError - stack level too deep
on
the Rails.backtrace_cleaner.remove_silencers!
so ive dont that.
Is there something else i can do to that would be helpful?
On Saturday, June 22, 2013 5:06:54 PM UTC-6, Bob O wrote:
Im having an issue that seems to only happen when trying to use a
transaction. Ive used transactions many times in the past
Im having an issue that seems to only happen when trying to use a
transaction. Ive used transactions many times in the past and Im at a loss
as to why im getting the stack level too deep problem.
SystemStackError - stack level too deep:
actionpack (3.2.13)
I want to customize rails scaffolding. For that I want to set up a custom
template engine.
Can anyone guide me to set a custom template-engine.
--
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
Can you please share your scaffold generator template modifications with
me? im tryng to do that but getting lots of error
--
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,
I was trying to create custom view pages in ROR as seen in
http://blog.hulihanapplications.com/browse/view/55-ruby-on-rails-multiple-model-form-generator
then i got some errors
**
(erb):6:in `template': compile error (SyntaxError)
(erb):3: syntax
The controller code for edit view:
**
def edit
@%= file_name % = %= class_name %.find(params[:id])
end
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk
These are files in rails installation folder the scaffold-generator
template.
These are defined default by rails
path of files in linux:
usr/lib/ruby/gems/1.8/gems/rails
2.3.5/lib/rails-generator/generator/components/scaffold/template
--
Posted via http://www.ruby-forum.com/.
--
You
Jim ruther Nill wrote in post #1081968:
On Tue, Oct 30, 2012 at 7:01 PM, KUL KING kulking...@gmail.com wrote:
@%= file_name % = %= class_name %.find(params[:id])
end
you are using erb code inside the controller. i don't get why you want
to
do this or if it's even
possible to do it
I was trying to create custom view pages in ROR as seen
inhttp://blog.hulihanapplications.com/browse/view/55...
http://blog.hulihanapplications.com/browse/view/55-ruby-on-rails-multiple-model-form-generator
then i got some errors
**
(erb):6:in
Michael Kohout wrote in post #693402:
hmm...I was getting this behavior from regular ol attachment_fu. To
solve it, I just rolled my own file code.
But thanks for the update!
Pls can you describe how you got around this issue?
Thanks.
Taiwo
--
Posted via http://www.ruby-forum.com/.
--
this (inline)
or better you would use Prototype or jQuery to write an unobtrusive
handler.
O weh, dear sirs,
If I could I would but before I should know the way to. Presently I
consider your enlightened talk with awe like some heaven dwellers'
parlance incomprehensible for mere mortals.
OK. I asked
Colin Law wrote in post #1067862:
I would start by working right through some good Ruby tutorials (to
understand the language better) and also through some good Rails
tutorials (railstutorial.org is good and is free to use online) to
understand the Rails magic.
thank you Colin,
you are
happy moments are too short...
the search form worked and still works but it has a major flaw - when
the text_field_tag is left blank then all the db raws pop up on hitting
submit button.
How to prevent it?
I tried to substitute 'if (search.present?)' for just 'if search' in
disk.rb (the
thank you, Walter,
it worked after I had corrected the shameful typo and replaced 'name'
with 'title'further along the line.
I feel embarrassed and obliged or, maybe, vice verse.
gratefully yours`
sehrguey
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you
Hi Walter,
there is form_tag in the index view`
-
br /
div
%= form_tag disks_path, :method = 'get' do %
p
%= text_field_tag :search, params[:search] %
%= submit_tag Search, :name = nil %
/p
% end %
/div
%= link_to 'New Disk', new_disk_path %
--
but when I
Walter,
here is the contents of my disk.rb
---
class Disk ActiveRecord::Base
attr_accessible :director, :language, :notes, :starring, :title,
:volume_name, :wrapper
def self.search(search)
if search
find(:all, :condition=['name LIKE ?', %#{search}%])
else
dear Gregory,
I watched both episodes you mentioned, they did not work for me, I
couldn't figure out where the views come into play, which model stores
the searched items and what is in the controller of that invisible
model.
yours`
sehrguey
--
Posted via http://www.ruby-forum.com/.
--
Hello Bill,
sometime ago I hacked the database structure from Kevin Yank's tutorial
“Build Your Own Database Driven Website Using PHP MySQL” to use it for
a database at my site and it works OK storing and delivering a hundred
plus of records in the database I needed.
However I haven't
dear Walter,
thank you for your kind attention and readiness to help.
You talked about my controller and proposed an awesomely nice line:
“ @foos = Foo.where([bar LIKE '%?%',params[:q]])”
Unfortunately, it is not enough to get me started because I can't
imagine where on earth to stick it
dear each, and all and others,
being a completeest newbie to RoR and having got dumb by a month or so
of googling how to add search faculty to a web app, I ask you for
help.
All I got is a database of 200 records so there is no need for sphinxes,
sunspots, elasticsearches, searchlogics, ferrets
I also have this problem but I have root access.
Are there any options?
--
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
looking for some one to do a groupon like website
--
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
Last week I launched a new write-through-cache gem for Rails 3, see
https://github.com/orslumen/record-cache.
The reason I built it, is because we were using cache money and recently
migrated to Rails 3. So chances are, it will also serve you well.
--
Posted via http://www.ruby-forum.com/.
--
Today I launched a new write-through-cache gem for Rails 3, see
https://github.com/orslumen/record-cache. It's works great in Rails
3.0.x and will support Rails 3.1.x in the near future.
The reason I built it, is because we were using cache money and recently
migrated to Rails 3. So chances
I have an observer and I register an `after_commit` callback.
How can I tell weather it was fired after create or update?
I can tell an item was destroyed by asking `item.destroyed?`.
I was going to solve it by adding `after_create`/`after_update` and do
something like `@action = :create` inside
try
ActiveRecord::Base.include_root_in_json = false
ok.
On Mon, Mar 7, 2011 at 4:22 PM, elliottg x...@simplecircle.net wrote:
I am calling render :json = @buildings from a Buildings
controller.
It's returning
[{building:{value:114 3rd Ave New York}},{building:
{value:114 1st Pl
no luck with it. :-(..
On Feb 25, 10:06 am, Eduardo de O. Hernandes eduardod...@gmail.com
wrote:
Hi people,
Anyone is using Rails 3 (backend) with Sproucore (front-end) ?
--
You received this message because you are subscribed to the Google Groups
Ruby on Rails: Talk group.
To post
Hi people,
Anyone is using Rails 3 (backend) with Sproucore (front-end) ?
--
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
Typically you'd have 1 partial for the review: views/reviews/_review. In
my case the content varies slightly based on the context/review type. I
don't think it makes sense to have N partials per context and review
type when 85% of the layout is the same.
--
Posted via
Using Rails 2.3.8. My site displays reviews. Depending on what context
the review is shown in the review's heading and thumbnail change.
I'm trying to share a layout across several review partials. Each
partial would define a few snippets of HTML to be used in the layout.
Is this possible? I've
Kunjan,
when you try to connect to salesforce with the, activesalesforce, you
should set infos in config/database.yml like below.
development:
adapter: activesalesforce
username: ...@yyy.com
password:
You might see some errors while trying to login. In That case, I suggest
%= u.collection_select( :member_status_id,
@member_statuses, :id, :name , { }, { :class = select, :name =
member_status_id })%
I would try this. the first hash set is for options, the second is for
HTML options. It looks like your passing args in the wrong place
On Jan 13, 1:10 pm, wardenik
To clarify, Are you trying to get these values before THIS page is
set? and if so what is creating these values? Would you not already
have the data?
If you are trying to get values via javascript for the next request
could you not use javascript on the page to set params on what sets
the search?
Hello,
Here at Rackspace we embrace open source development and are currently
engaged in a number of projects using Ruby on Rails. We need more
developers and are currently growing our teams in San Antonio and
Austin TX. If you are interested In discussing development
opportunities please take
Already fixed... just removed the unecessary option -rgettext/rails from
command line
2010/8/2 Bráulio Bhavamitra brauli...@gmail.com
Hello all,
I'm a newbie to Ruby/Rails world, and also to the application I'm
trying to use: Noosfero.
The thing is, i'm trying to run 'rake makemo' with no
I know i can pass a hash to a named_route, but how do i filter.
example
i have a bookings_controller and i want to filter the index lists
based on which link is clicked.
so something like
%= link_to Current Bookings, bookings_path(@current_bookings) %
@current_bookings is set to
hello,
im stuck, im trying to do a find on a model with a date range where i
only have 1 date.
example something like
def self.date_range(posted_date)
date_range = find(:all, :conditions = { :received_date =
posted_date..24.hours })
return date_range
end
basically i pass in the posted
hello,
Im interfacing a PHP app with my rails app and one of the tables im
trying to do a find on has an enum column. So when i run the find, its
adding an extra condition. This is my first time interfacing with a DB
like this so im not quite sure how to remedy my problem
This is my named_scope
Excellent. Thank you for the link. That worked great!
On Sep 7, 3:33 pm, Colin Law clan...@googlemail.com wrote:
2009/9/7 Bob O sngndn...@gmail.com:
hello,
Im interfacing a PHP app with my rails app and one of the tables im
trying to do a find on has an enum column. So when i run
I had a lot of trouble Saturday as well with this..
I found you need to install the 64bit v. and set your paths
accordingly.
plus this was the link that helped get it running finally with my
current applications
http://void-design.net/2009/08/05/ruby-191-mysql-and-a-snow-leopard/
chekc it
ive been able to get nested attributes to work before. but only with a
has_many
Im having problems with hidden fields and nested attributes
model - owner.rb
belongs_to :ticket
belongs_to :employee
model - ticket.rb
belongs_to :owner, :class = 'Owner'
accepts_nested_attributes_for :owner,
I was a lot like you. I have a really strong BG in HTML CSS and Flash
dev. With a little JS. I bought numerous tutorials and books. I have
watched Ryan Bates Railscasts many times.
Everyone learns differently, but from my experiences over the past
year and a half i would say, get your head
, you may need of the other solutions here. Or, you could
call a named route like this:
%= link_to 'show', send(#{some expression that gives you the name}
_path, object) %
but the previous example seems much cleaner.
--Matt Jones
On Jul 10, 6:17 pm, Bob O bhan...@hcinsight.com wrote:
does
After diving into a few mentioned scenarios (thanks Frederick) the
polymorphic_path and polymorphic_url is what i was looking for.
thanks guys
B
On Jul 13, 7:40 am, Bob O bhan...@hcinsight.com wrote:
Let me see if i can be more clear, and i will try some of the
suggested solutions
Im
does anyone know how i can make dynamic paths?
say i had a partial for maybe an index list, but i want the link to
the show page to be dynamic so im able to use the partial for may
objects.
%= link_to show, #{object} + _path(object) %
something along those lines.
the above wont
work correctly, right?
if this doesnt make sense i can post some code
On Jul 10, 4:23 pm, Älphä Blüë rails-mailing-l...@andreas-s.net
wrote:
Bob O wrote:
does anyone know how i can make dynamic paths?
say i had a partial for maybe an index list, but i want the link to
the show
so i found out it was a pathing problem when i went to a url like /
controller/action, it caused my stylesheet path to break.
if i add a ../stylesheets/ie6stinks.css then it works for those pages
that have the controller in the url.
So now i have to conditionals that basically point to the same
This is another really good first rails book. it covers some really
core concepts. This will help the other deeper books easier to get
into.
http://www.headfirstlabs.com/books/hfrails/
I have spent the last year learing and developing in Rails and Zend
(php) and i wish i had this book a year
Anshali Dhande wrote:
Hi All,
Please help me out for this issue
Issue is: how to integrate authorised.net with rails application:
thanks
Check to works of Cody Fauser for this at http://www.activemerchant.org/
NoJ
--
Posted via http://www.ruby-forum.com/.
I recently used FusionCharts the free version. They have great
documentation and it is pretty easy to connect them with a .rxml Once
you get the hang of using them, they have many different types..
http://www.fusioncharts.com/free/
On Dec 5, 1:19 am, CSK Vasanth [EMAIL PROTECTED]
wrote:
Hi
Ive been using this on my latest project and found it to be very
stable, easy to style, easy to use..
http://famspam.com/facebox
Good Luck
On Nov 18, 2:04 pm, Philip Hallstrom [EMAIL PROTECTED] wrote:
Hi all -
I need to do an overlay with something that supports ajax/remote
html.
Hello all,
First let me say im a n00b. Im coming into the OOP world from the
design world. So far so good. With great resources like this, youre
all making my life less painfull.
Question -
The current project im involved in is in 1.2.3 (not by my choice)
Basically i have a form partial that
59 matches
Mail list logo